• Blog
  • Archives
  • Code
  • Talks
  • About

My Three Words now on Facebook and your website

Note: This post is over 6 months old and may now be out of date. Some of the links not work anymore.

(1 minute read)

Remember My Three Words? Over the last month or so we've been busy adding lots more to it.

You can now get it on Facebook at http://apps.facebook.com/mythreewords/. And you can share your favourite stories on Facebook itself and invite your friends to play with you.

But the coolest new thing is the little widget (see below) which can be embedded on your website. So your visitors will get to see what crazy story is being concocted right now on My Three Words. To embed the widget onto a webpage simply insert the following line of code where you want the widget to show up:

<script type="text/javascript" src="http://mythreewords.com/widget"></script>

The widget is contained within a <div> element with the class m3w-widget. It re-uses the styles from the My Three Words homepage. The above <script> loads some Javascript which in turn loads jQuery, output the HTML and loads the widget-specific Javascript which will be responsible for fetching new data from the My Three Words server. JSONP is used to work around the 'Same Origin' policy.