Facebook php api: extracting wall info? [closed]?

If you want to know the general process, here's what I think: Authentication Fetch the list of the friends The users chooses some friends Fetch the latest posts on the chosen friends walls and show them to the user That's for the starting process. You can cache the wall posts also. And All of it can be done with php-sdk.

Well, you can put the user names of who they wan't to follow on a database, then, make a graph call o get the wall updates of those user names: Use the Facebook PHP SDK to get authorization from the user, and use the "scope" method to get the "read_stream" permission, that will make it possible to see the users profile stream, more known as "wall", but, as you wan't to see there friends updates as well, you can ask for the "offline_access" permission, then, after the user has logged into facebook, the site will return data to you, with the users wall posts and there home posts ( the home posts contain the data that there are subscribed to, so there will be friends posts and other pages posts). Then, once you have the permission "offline_access", you can get that data at any time, using the users Access Token, given from that permission. This file, checks if the user is online in Facebook, if not, they will be taken to the facebook login page AND, if the user did not give the permission yet, they will be asked for that.

The "scope" after the loginURL is where you will put the permissions wanted. 'APPID', 'secret' => 'APPSECRET', )); // ---------------------------------------------------------------------------------------- // ---------------------------------------------------------------------------------------- // Get User ID $user = $facebook->getUser(); /* We may or may not have this data based on whether the user is logged in. If we have a $user id here, it means we know the user is logged into Facebook, but we don't know if the access token is valid.An access token is invalid if the user logged out of Facebook.

*/ if ($user) { try { // Proceed knowing you have a logged in user who's authenticated. // These are the graph calls --> $dt = $facebook->api('/me'); $lk = $facebook->api('/me/likes'); } catch (FacebookApiException $e) { error_log($e); $user = null; } } // ---------------------------------------------------------------------------------------- // ---------------------------------------------------------------------------------------- // Handler for Login Status if ($user) { $logoutUrl = $facebook->getLogoutUrl(); } else { $loginUrl = $facebook->getLoginUrl(array("scope" => "email,user_birthday,user_likes,user_location,offline_access,read_stream")); } // ----------------------------------------------------------------------------------------? > "; print_r($dt); echo""; echo""; echo ""; print_r($lk); echo""; endif?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions