Posting to a Facebook wall using the Graph API
Saturday, May 28th, 2011First, 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 ...