*UPDATE – JUNE 23, 2011: I finished the blog post for the new version of my Facebook Wall Feed for WordPress code. Please refer to the new code from now on as the code and information here doesn’t work anymore.*
*UPDATE – June 21, 2011: At the beginning of June Facebook changed the way they handle calls to get the wall updates. The code given on this page will no longer work. I have made some updates to my code to get it to work for my site and am working on the write up for instructions on how to get it working the new way*
With all the Facebook plug-ins that were available for WordPress, I assumed that they would have one that would display your feed from your Facebook wall. I was wrong. So I set out to find a solution.
In my searches on Google I found many answers on how to do this for the previous version of Facebook. In the previous version there was a way you could find the RSS link of your wall feed and use that to display it on WordPress or any external website. It appears that the new version of Facebook no longer has this ability. When I tried it, the link would always just redirect me to my profile page. This is not what I was looking for. I wanted to be able to display my status updates on my blog so those that are either not on Facebook or those that aren’t my friends on Facebook could still keep up with my updates.
So I had to break out my programming skills and come up with my own solution. It actually was a little easier than I had first anticipated. The biggest problem was that the feed returned JSON objects. Unfortunately I have not really had much experience with JSON. So this was a learning opportunity for me. Once I was able to parse the JSON objects I could then have the output written as HTML. Now all that was left was to organize it and format it to have the same look as other Facebook elements. This wasn’t that hard, but it is very time-consuming.
So for starters I just concentrating on the status updates. I will have to find time for the Places updates, link posts, photo posts, etc…I figure if I can get around to it I would love to get that done and then make it a WordPress plugin to help others out. I have already started on a php class to handle everything. If there is anyone that is familiar with making a WordPress plugin and would like to help, please contact me. I’m all for sharing the work load.