Twitterbook v3 Now Available

A new version of Twitterbook is now available – the mashup that lets you use your Facebook status to update your Twitter account.  For this update, a special thanks goes out to Ryan for his suggestions on handling long Facebook status updates when submitting them to Twitter.

Download Twitterbook v3 (4KB)

Just like the previous versions of Twitterbook, you’ll need to edit the .php file with your personal information before uploading it to your server. On the new Facebook layout, you can find the link for the RSS feed for your status updates here:

http://www.new.facebook.com/minifeed.php?filter=11

You’ll need the actual URL of your feed (found at the link above) to properly setup the twitterbook.php file, along with the URL for your Twitter Feed, your Facebook Name (eg. ‘Stuart’), as well as your Twitter username and password.

Once you’ve edited and saved the twitterbook file and posted it on a web server running PHP, just go to the URL for the script (or call it using an automated Chron task) anytime you want to update your Twitter account with your Facebook status.

Thanks again for the feedback and suggestions!  Post a comment, or connect with me on Twitter: twitter.com/designmeme

Tagged : facebook, howto, mashup, php, status, tools, twitter

27 Responses to “Twitterbook v3 Now Available”

  1. Twitterbook v3 Now Available | Design Meme

  2. Find me Elsewhere 27/Sep/2008Twitterbook v3 Now Available | Design Memezoezombie: boooooo the cats! you cost me $10!! zoezombie: i am pretty sure i’m australian. *checks passport* oh yes I am. that means I don’t require to know about the 2008 DEBATE. EFF OFF! 26/Sep/2008

  3. - Share code snippets on Twitter Drunktwt – anonymous, uncensored twitter updates for everyone WhenDidYouJoinTwitter – When did you join Twitter TwtTrip – A simple travel organiser Twitter app Tweeterized – Twitter signature imagesTwitterBook- Lets you use your Facebook status to update your Twitter account Twitter Magnets – A delicate push Huitter – Twitter’s cheats, tweaks, tools Twivial – Play trivia on Twitter Twenglish – The twool that lets you tweat like a twird

  4. on their pages. Essentially, Web Elements is a one-stop-shop for Google’s product widgets, which until this point were often buried in odd places.” (tags: search+engines widgets development business news tidbits+fodder )Twitterbook v3 Now Available | Design MemeMashup that lets you update Twitter via Facebook, recommended to me by Beth kanter. (tags: facebook twitter mashup social+media )

  5. [...] Twitterbook v3 Now Available | Design Meme SAVE [...]

  6. Have just tried installing it and go the following error:

    Fatal error: cannot instantiate non-existent class in simplexmlelement in (path) on line 43.

    Any ideas?

  7. Great i wrote a review in italian, tnx for Twitterbook

  8. Grazie mille! :D

  9. :D tnx to you

    Ps: italian review here http://preview.tinyurl.com/4z8rcs

  10. [...] script che permette di riportare su twitter gli status message di Facebook. Questo script chiamato Twitterbook è un semplice file php, potete scaricarlo da qui, che richiede alcune semplici [...]

  11. [...] to these Stories: quello è il link del feed che vi serve. Collegamenti Scarica Twitterbook (4kb) Twitterbook Stuart Robertson su [...]

  12. [...] http://www.designmeme.com/twitterbook-v3-now-available/ Reply to this comment » [...]

  13. [...] see what they’re really thinking outside of what the media is splashing in the news. Oh and FYI, Twitterbook is the site affiliated with Twitter, offering users the ability to update your home page vis a vis [...]

  14. Yeah same problem as nick

    Fatal error: cannot instantiate non-existent class in simplexmlelement in (path) on line 43.

  15. [...] Twitterbook is a mashup that lets you use your Facebook status to update your Twitter account. Download Twitterbook v3 (4KB) [...]

  16. Can you explain the Chron task? I’ve gotten this far with the php updated file and need some help from this point. Thanks!

  17. Solution to my previous problem.
    It has to do with php 5…
    Just make a .htaccess file for the directory of your twitterbook file with the following lines:

    AddType x-mapp-php5 .php
    AddHandler x-mapp-php5 .php

  18. I’ve posted a blog on how to get your facebook status into drupal, but that same module will work with Twitter as well. In case any one is wondering:

    http://www.andy-walters.com/get-facebook-status-rss-feed

  19. [...] Twitterbook is a mashup that lets you use your Facebook status to update your Twitter account. Download Twitterbook v3 (4KB) [...]

  20. I’m having some type of weird issue. I did try to do the php5 thing someone previously mentioned by adding a htaccess.

    Fatal error: Uncaught exception ‘Exception’ with message ‘String could not be parsed as XML’ in /home/.national/daniel13/dangarion.com/twitterbook/twitterbook.php:43 Stack trace: #0 /home/.national/daniel13/dangarion.com/twitterbook/twitterbook.php(43): SimpleXMLElement->__construct(”) #1 {main} thrown in /home/.national/daniel13/dangarion.com/twitterbook/twitterbook.php on line 43

  21. John Voorhees Says:
    January 10, 2009 at 2:46 pm

    I am having the exact same issue as DanGarion above. Anyone have a fix?

  22. I’ll take a look at the code when I get to the office on Monday and see if I can figure out what’s going on with that exception. :)

  23. Stuart, any luck?

  24. Try putting this line after setting the USER_AGENT:

    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);

    Works for me at that point. Seems theres a redirect in there that curl is not following, so the XML parser is trying to parse an empty string.

  25. Thanks Nigel! :)

  26. That appears to fix it. Thanks!

  27. Everything is working great. But now I’m wondering if there is a way to get this to work if you also sometimes just post directly to Twitter on your own. Since it’s only looking at the most recent message on Twitter, if you post directly on Twitter it will, then repeat the message that is on your Facebook shortly after.

  28. Nigel, where would one put the curl_setopt($ch, curlopt_FOLLOWLOCATION, true) line. Where is the user_AGENTentry?
    Is it in the twitterbook.php file?
    If it is, I added it, but still don’t work!!
    Can you be more specific please?
    Thanks

  29. Nigel Beck Says:
    February 13, 2009 at 9:18 am

    Rafa – in my copy of the code, around line 32 there is a line

    curl_setopt($ch, CURLOPT_USERAGENT, “Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.1) Gecko/20061223 Firefox/2.0.0.1″);

    Add the following on a new line after that line:

    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);

    You should then find the script works for you. At least, it should get your facebook status (I just tried it).