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/
Related
I Use the Facebook API Graph on my website to feed posts.
The problem is that I can't figure out how to feed on my facebook personal page. I can only feed on my facebook normal page.
The feed looks like this:
https://www.facebook.com/dialog/feed?app_id=xxxxxxxxxx
&redirect_uri=https://www.mywebsite.com
&link=https://www.mywebsite.com/
&title=title
&picture=https://www.mywebsite.com/picture.png
&caption=caption&description=description
Can I add somewhere the url of my persosnal page to post directly on it?
With the Feed Dialog, you can only post to your user profile. Try the Share Dialog instead: https://developers.facebook.com/docs/sharing/reference/share-dialog
...you can even omit all parameters except for the URL, because it will just get the data from the Open Graph Tags.
If that does not work, you can also use sharer.php: https://www.facebook.com/sharer/sharer.php?u=[urlencoded-url]
I am try to publish link on Facebook fan page using graph API but it displayed as attachment not as normal feed which display thumbnail.
Where as when I try to publish same link on users wall it display properly showing image thumbnail.
Can any one tell me why Facebook graph API work differently.
Feed publish on FB fan page :
Feed on user wall :
Thanks to all, I am finally able to solve this issue, the issue was I am using {page_id}/feed method to publish link for video and image, which displayed as attachment on Facebook fan page.
Solution : {page_id}/links with parameters [link, message, picture]
Pls provide params you include in request to facebook. Maybe providing params as shown in answer to following question helps, i.e. picture?
Posting an embedded video link using the Facebook Graph API
Is it possible to post on a page with a url scheme?
I currently have this, fb://profile/325899700848032
But this only opens the page ofcourse. What i mean is something like this
fb://profile/325899700848032/PostMessage/"test message" or ../PostImage/image
Is anything like this possible to do?
Thanks!
To post on facebook page you need to ask first for the famous manage_pages authorization. Once you have it you make a FBRequest on the openGraph for me/accounts which return an array of the current user pages and other application. You parse this json for each page and you pick the token_access and the id. You then set the page token access on your facebook manager and then you can post for example a picture to the page with the "{id}/photos" POST graph request {id} being the page id.
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
Is there an API call, and if so, which call to get the 'posts to my wall from myself and others' on Facebook? It seems like it could be filtered out of the Facebook stream API, but it's not clear how that works to me.
This link seems to imply it's possible:
http://developers.facebook.com/news.php?blog=1&story=225
You want to do an FQL query like this:
SELECT actor_id, message FROM stream WHERE source_id = <user id> limit 50
You will probably want to select a few more fields, you can see what is available here: http://wiki.developers.facebook.com/index.php/Stream_%28FQL%29
Here it is.
Profile feed (Wall): https://graph.facebook.com/me/feed?access_token=...
https://developers.facebook.com/blog/post/465
You can publish stories to people who like your Open Graph Page the same way you write a Facebook post from your own wall. The stories appear in the News Feeds of people who have clicked the Like button on the Open Graph Page.
You can also publish using our API. If you associate your Open Graph Page with a Facebook app using the fb:app_id meta tag, you can publish updates to the users who have liked your pages via the Graph API.
First you need to get an access token for your app.
Check out the blog post, it covers everything you need.