how to read public timeline feed in facebook? - facebook

I need to read timeline feed in facebook public pages. I have used syntax to get the feed from timeline:
https://graph.facebook.com/v2.3/DoveIndia?fields=id,name,picture,feed
It works well and returns the feed,when facebook page not have "Posts To Page".
When Page have "Posts To Page",it only returns all posted messages on page not timeline feeds.
Example of a request(Graph API Explorer tools):
https://graph.facebook.com/v2.3/jeep?fields=id,name,picture,feed
Please suggest how can read feed from timelines?
Thanks
Sameek

/{page-id}/posts shows only the posts that were published by this page.
Source: https://developers.facebook.com/docs/graph-api/reference/v2.3/page/feed

The feed of posts (including status updates) and links published by this person, or by others on this person's profile. There are other edges which provide filtered versions of this edge:
/{user-id}/posts shows only the posts that were published by this person.
/{user-id}/tagged shows only the posts that this person was tagged in.
All of these derivative edges share the exact same reading structure, however /feed should be used for all publishing purposes.

Related

Graph API Page Mentions

How can I retrieve Page mentions made by user in their own wall (both comments & posts).
When I query the Page's feed those mentions aren't retrieved and I cannot find Page's edges that can retrieve those posts/comments
This API call gets you all the public mentions of your page: {page_id}/tagged.

How do I get the most recent comments of Facebook?

So I have a comments box of Facebook on my site ( one on each article I have on my blog ). My client likes a widget with the most recent comments on his site. I found the Activity Feed with the note:
Activity is also displayed when users share content from your site in
Facebook or if they comment on a page on your site in the Comments
box.
I filled in the App ID, but it does not show the comments? Does anyone have an idea how I can get the most recent comments posted in the activity feed?
You should retrieve your comments by your URL, not by app ID.
The comments for every URL can be accessed via the graph API. Simply go to: https://graph.facebook.com/comments/?ids={YOUR_URL}.
For example, the comments on this URL can be accessed via: https://graph.facebook.com/comments/?ids=http://developers.facebook.com/docs/reference/plugins/comments.
Detailed information: How do I access the comments left on my site?
Some more about comment box: Adding new features to Comments Box

Facebook API restserver error with likes and comments

I'm having this strange problem: I have a link for a picture and i want to display it on my wall. Now i want to know how many times it was liked, shared and commented on. Let's say my picture url is http://mywebsite.com/mypicture.jpg?468
Now, I share this picture on my wall, I get likes, shares and comments.
If i'm using the http://api.facebook.com/restserver.php?method=links.getStats&urls=... i can see the shares, but not the likes or comments number.
Why is that? Do you think it's because of the ?468 after the .jpg? If so, why is that happing and only the shares are counted, and not the likes or comments?
For starters, you should be using the Graph API. The restserver.php file you are pointing at is deprecated at this point.
You will want to use the send (or like) plugin from Facebook. The REST API is deprecated (no longer supported and will be pulled completely from Facebook at anytime).
Then your url being shared will get a id from facebook and the stats tracked. Here's some examples: http://graph.facebook.com/?ids=CocaCola or http://graph.facebook.com/?ids=http://www.coca-cola.com

What is the API for Facebook 'profile stream' aka wall posts?

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.

Can you subscribe to a facebook page via rss?

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 :-)