Display latest recent posts in my facebook page into my website

How to display your facebook wall posts into your own web site.For a example you can display facebook page’s latest posts into your web site sidebar as “latest posts”. This is actually displaying as rss feeds.You can check my demo how this is implemented.

1-First go to the facebook fan page and copy the page ID from the url.

Get Facebook fan page ID

2-The put the user agent type as following.

3-Replace the page ID in to this rss url.

4-Then get feeds as xml file.

5-Above result is getting xml object and we can get xml data into the array.

Put this all together.

Above example is displaying latest 5 posts.You can change number of posts in the for loop.

Check the demo I have implemented in my fan page of WebExplorar.com
View Demo>

Download Example (2 KB)

Published by

Sumith Harshan

Sumith Harshan is the Web Engineer Specializes in Java Script, JQuery, HTML4/5, CSS2/3, PHP, CodeIgniter, CakePHP, J2SE, J2EE, XML, Hacking & Security, Mobile Interface Developing, Magento, Wordpress, Joomla, Drupal,PHPBB,Facebook App Developing and Open cart...etc.