Mo J. Mughrabi
Mo J. Mughrabi

Reputation: 6997

Facebook API to retrieve wall feed

I've never done any facebook development and am working on a project which I only require to pull out wall stream from a certain user. Is there such an API I could use for this purpose?

Upvotes: 0

Views: 11202

Answers (3)

Rasshme
Rasshme

Reputation: 1641

Though this is an old post, still i am putting in my reply. This might be helpful.

I am using php sdk and here is code for getting the users wall posts (includes posts by other users as well)

$facebook = new Facebook(array(
  'appId'  => '101874630007036',
  'secret' => '2090c8d645ae93e7cacee2217cd3dc0c',
));

$user = $facebook->getUser();

// Login or logout url will be needed depending on current user state.
if ($user)
{
  $logoutUrl = $facebook->getLogoutUrl();
} 

else 
{    
    $params = array('scope' => 'read_stream');

    $loginUrl = $facebook->getLoginUrl($params);
}

if ($user)
{    
    $comments = $facebook->api('/me/home'); 
}

here $comments contains the wall post json data.

Upvotes: 0

davewasthere
davewasthere

Reputation: 3028

Well, if you're happy with JSON, just using the graph API is a good start.

e.g. https://graph.facebook.com/starbucks/feed

Not too hard to pull that down with Python and put the data in a table...

Upvotes: 0

Ryan Kinal
Ryan Kinal

Reputation: 17732

Facebook exposes a generic API. You can write your own methods of accessing it, or you can use Facebook's libraries (if your preferred language is available). Check out the following link to get started:

Getting started

Upvotes: 5

Related Questions