jasonaburton
jasonaburton

Reputation: 3103

Creating a Facebook App

I am building a website for a client. He has a Facebook page for his business. On the homepage of his site, he wants a feed that will pull in all the updates from his business' Facebook page.

Now, I felt this would be very easy to implement (maybe it is) but I have scoured the Facebook API for any simple way to do this. I am having a lot of trouble understanding which way I should do this. I've settled on using JS to access it, but have no idea where to go from there.

Do I need to create an app? If so, which options do I select so I can access the clients facebook page?

How do I get my app that I've created to show up so a user can authorize it? I have so many questions, and Facebook isn't very good at giving me answers.

Any help is greatly appreciated.

Upvotes: 1

Views: 540

Answers (4)

Ardesco
Ardesco

Reputation: 7441

I would suggest you just use the facebook page's RSS feed.

Example

Take his page URL e.g.

https://www.facebook.com/pages/Lazery-Attack/6001014870

Take the number at the end of the url off, and plug it into the facebook feeds URL e.g.

https://www.facebook.com/feeds/page.php?format=rss20&id=6001014870

Voila, you now have an RSS feed you can integrate into the website you are building.

URL Breakdown

The URL is broken down the following way:

https://www.facebook.com/feeds/page.php?format={feedFormat}&id={PageID}

Vaid feed formats are:

  1. RSS - rss20
  2. Atom - atom10
  3. JSON - json

Other Examples

Atom

https://www.facebook.com/feeds/page.php?format=atom10&id=6001014870

JSON

https://www.facebook.com/feeds/page.php?format=json&id=6001014870

Upvotes: 2

Sam
Sam

Reputation: 2658

Not an app, but the Facebook Social Plugins over here at Facebook For Pages

Upvotes: 0

FluffyKitten
FluffyKitten

Reputation: 14312

The simplest way is to add a Like Button to the page and make sure "show Stream" is checked on as this will show all recent posts. You can customise the appearance also (e.g. width, height etc).

No App or messy API calls needed!

Try it out here and simply paste the resulting code into your webpage: http://developers.facebook.com/docs/reference/plugins/like-box/

Upvotes: 0

allaire
allaire

Reputation: 6045

Take a look at the facebook API, right here: http://developers.facebook.com/docs/reference/api/page/

You can give it a try here: http://developers.facebook.com/tools/explorer/?method=GET&path=19292868552%2Fposts

The like box: http://developers.facebook.com/docs/reference/plugins/like-box/ also has the latest posts available

Upvotes: 0

Related Questions