Problem: I want to display the posts from my facebook page on a PHP page.[When there is a new post on the facebook page, my PHP page should also render the same]
Way1: If there is a way to get a RSS feed of the facebook page i can parse the RSS and display it in the PHP page. But i am not able to find a way to get the RSS feed.
Way2:Another way is to use FB Api. But what API can i use? Never worked with facebook API's so any help would be great.
Any other way to solve the problem is welcome!
Facebook has a universal page RSS feed:
https://facebook.com/feeds/page.php?id=PAGE_ID_HERE&format=rss20
You may simply retrieve and sanitize the data accordingly.
Good luck!
That doesn't seem to work for me (perhaps it's a privacy settings thing?) If you want everything on your wall (not just your own status posts, go to your notifications page and select RSS at the top where you have the options of getting either Text Message alerts or an RSS feed of what's on your wall.
Step 1:
Find your Facebook ID of the page:
http://findmyfacebookid.com/
Step 2:
Add the ID at the end of following url string
http://www.facebook.com/feeds/page.php?format=rss20&id="ADD HERE ID NUMBER ONLY"
e.g.
facebook.com/feeds/page.php?format=rss20&id=100001463662167
Related
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.
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:
RSS - rss20
Atom - atom10
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
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
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/
Not an app, but the Facebook Social Plugins over here at Facebook For Pages
Do you think that the new Facebook timelines still uses RSS since I had an application that parsed RSS from Facebook but for new pages I cannot manage to get an Rss feed. Any one has an idea where to get an RSS Feed for the new timeline ?
Here is an article on how to to do this.
I actually want to do the same but from what im reading fb remove it :/
http://thehappyhubber.hubpages.com/hub/How-to-Add-your-RSS-Feed-to-Your-Facebook-Page
If you view facebook page, they are link left-bottom shows rss feed for facebook page, but unfortunately, the feed only shows status update by page owner, is there anyway to get feed from everyone who post the new status in the page....
There's another way to get the feed from a public Facebook page as RSS, which is entirely public and can be retrieved anonymously; i.e. requires no Facebook connect or other stuff. The format for the URL of the RSS feed is:
https://www.facebook.com/feeds/page.php?id=PAGE_ID&format=rss20
Where PAGE_ID is the Facebook ID of the page. Or even better, as JSON:
https://www.facebook.com/feeds/page.php?id=PAGE_ID&format=json
Use http://developers.facebook.com/docs/reference/api/, get the access_token like this: Facebook: post image and description to wall and in page album via php
These guys seems to be providing an API as well here - https://randomtools.io/developer-api/
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?
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.
I assume you created a facebook page for your band and it has url in such format:
http://www.facebook.com/pages/<band_name>/<page_id>
In this case you can read wall posts in json format using Graph API (no login required):
https://graph.facebook.com/<page_id>/feed
If you only want posts from "me", can't you just use the Like Box social plugin and show the stream? This plugin will only show posts from the page owner.
http://developers.facebook.com/docs/reference/plugins/like-box
I am developing a similar app and after a lot of searching finally accomplished
https://graph.facebook.com/194466683916784/feed?access_token=AAACTzPZAxblQBAHND7fo1rA58VqQawuJb806Q6BeIFhTroyGSYIe5i0R5fZAZBtffNvkkZB7ayvV7Vw7j7ZBf7vGt6xHx2gjx4FhO8d27sAZDZD
enter your page wall id after .com and in the access token get your own access token from Graph - API explorer
Then exchange that token for a longer for a longer lived one that is for 60 days and you are good to go
Some time ago I had your same problem and I was looking for something very simple to publish feeds of facebook pages, but I didn’t find any solution on the web.
What I want to achieve are the post (only from my personal fan page, not the other) of the bulletin board (facebook wall) of a FB page (this is a fan page, not private profiles) and publish it on my site.
I was hoping to get the posts in JSON or XML format and then encode them so as to use FB as a news system. Unfortunately I haven’t found any kind of solution because I don’t want the user has to log in his account to see something so it must be a flow of pubblic feed.
So, I decided to code the plugin. Here the link to the tutorial:
http://www.lorenzodedonato.com/freebies/facebook-plugin-per-visualizzare-i-post-della-bacheca-di-una-pagina-fan-creato-in-php-json/
I have created a page and I would like users to be able to subscribe using rss (similarly as twitter). The only possibility I see is a subscription to notes, not the wall. Any ides how this can be done?
There is no RSS feed for Profile Walls due to the complexity, permissions and the amount of posts to walls.
There is only RSS for notes:
Example:
http://www.facebook.com/feeds/notes.php?id={target_user_id}&viewer={viewer}key={key}&format=rss20
This works for personal pages, but I don't think it works on other pages: To get everything on your wall (not just your own status posts), go to your notifications page and select RSS at the top where you have the options of getting either Text Message alerts or an RSS feed of what's on your wall.
For every page on facebook the RSS url is:
https://www.facebook.com/feeds/page.php?format=rss20&id=xxxxxxx
Where xxxxxxx is the page id. for example the ID for ubuntu page is 6723083591. so
https://www.facebook.com/feeds/page.php?format=rss20&id=6723083591
is the RSS feed to that page.
mauris answer while may have been valid in '09 it is possible to get the page feed :-)