Facebook – Get Facebook Page Wall Stream

facebookfacebook-wall

I want to get the posts (only from the band, not others) from a Facebook Page Wall (its a Band, so no private profile) and publish it on MY own site.

I hoped to get the Posts as XML or JSON and then parse them.
So I wanted to use Facebook as a news System.

But I didn't find a solution – I don't want to have the user to log in with his account to see anything – it should be just a public stream.

The only idea I found was to use twitter as an export mechanism, but that's kind of elaborate.

Does anybody have an idea?

Best Answer

You could use the Facebook php sdk: https://github.com/facebook/facebook-php-sdk It ends up looking like this:

//
include('facebook.php');
$fb_config = array(
        'appId'  => $yourAppId,
        'secret' => $yourSecret,
);
$facebook = new Facebook($fb_config);
$feed = $facebook->api("/{$nameOfFaceBookPage}/feed");

That will give you an array of feed stories.