Archive for the ‘Facebook’ Category

Posting to a Facebook wall using the Graph API

Saturday, May 28th, 2011

First, instantiate a new Facebook object. Nothing exciting here: require '../src/facebook.php'; $facebook = new Facebook(array( 'appId' => '..............', 'secret' => '..........................', )); As of PHP SDK version 3.0.0 you shouldn't use getSession() to verify a user's connectivity. Instead use getUser() directly: $user = $facebook->getUser(); Offer a login screen when the user is not ...

Adding a profile box and posting to the feed on facebook

Thursday, September 24th, 2009

Building an app is easy. At least that's what facebook states. Yet it can be quite a challenge to get started if you're not famliar with facebook's API as the documentation can be quite confusing. Besides, the API seems to be still under development and therefore subject to changes. Chances ...