How to Pull Facebook Status Updates onto My Web Site?

Hello There

I’ve been researching connecting a facebook site with a website.

I’ve pulled in the ‘like’ button and the 'find us on facebook button.

But I want to add facebook status posts to the website. So that when we update the status, the status is automatically pulled into the site.

There hasn’t been any clear documentation on how to do this. It seems like I will need to use the Graph API.

http://developers.facebook.com/docs/reference/api/. First of all can I just confirm that that is correct?

I’ve never really used API’s before, would there be an easier way of doing this?

Thank you in advance for any help

Didcot84

I don’t think there’s a widget that you can embed using an iframe or JS to do this, so you do need to use the Graph API. I did find a tutorial out there for doing this using PHP, along with a lengthy discussion of the details:

http://johndoesdesign.com/blog/2011/php/adding-a-facebook-news-status-feed-to-a-website/

If you can’t use PHP for some reason you may also be able to do it with JavaScript, but you’ll need to use JSONP to avoid cross domain scripting issues. The Graph API does support JSONP, and there’s more details on that here:

http://stackoverflow.com/questions/4669781/howto-get-jsonp-and-facebook-graph-api-to-work

I think you have your answer. If not then use Facebook badges in your website and get updates from FB regular in your website.

Thank you very much raw10 and aurobindosahoo. I really appreciate the help, I should be able to crack on with that now.

Thanks again for your help.

Thanks “didcot84” and could you please show me your website?

SitePoint members are not allowed to link to their websites within our threads. Please take the time to read through our FAQs/rules to see what is appropriate here and what is not.

You can use posterous.com