NOTE: This post was written using Facebook’s PHP SDK version 2.1.2. Since this post was made, the PHP SDK has changed and some of the process that are explained below may have changed as well. At some point I’ll have to revisit this post and update it but at this time just keep in mind of the above.
As promised, here is a post (similar to my Twitter API post) on using the Facebook API. There are many reason why one would want to access the Facebook API – maybe to create a mobile app that lets you post photos to your Facebook albums, or maybe you just want to show your last few Facebook status updates on your blog; what ever the reason may be, Facebooks Graph API mixed in with their PHP SDK makes it really easy to accomplish this.
Objectives
- Setup our environment
- Register an app on Facebook
- Understand the authentication process and extended parameters
- Understand Graph API
- Retrieve our latest status updates
- Add a new status update
- Retrieve our photos from our albums
- Add a new photo Continue reading “Facebook Graph API App Easy w/ PHP SDK”