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
Related
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.
When I post as my Facebook page persona, chronoglimpse, I don't want my own name to appear at the bottom in the news feed.
I've searched through Facebook's docs but I have had no luck finding an answer. Can adding my name be turned off?
chronoglimpse Facebook page
Link to target post, included for those interested only.
I think Facebook is grabbing this information from the meta tags on the shared link:
I've put a Facebook social plugin comments box on my site, in which i specified a Facebook Fanpage, as the comments target.
Now what I want to do is get all comments that are present in the comments box on page my page. I'm using this:
https://graph.facebook.com/comments/?ids=xxx
In place of xxx I placed my fanpage url (displayed comments just from one day even with limit set to 10000) and when this didn't work I tried my page url, which resulted in nothing being displayed.
The correct syntax to read comments from the Facebook Graph API is as follows:
GET /{object-id}/comments
So your URL would look like this:
https://graph.facebook.com/xxx/comments
Here's a live example that looks at comments on Coca-Cola's cover photo:
http://graph.facebook.com/10152297032458306/comments
You can read more about reading comments via the Graph API here.
check this stackOverflow topic
You need to call it from a secure request https and provide an access_token (19292868552_118464504835613 is Facebook post) :
( (19292868552) is the page or group id and (118464504835613) is the post id)
https://graph.facebook.com/19292868552_118464504835613/comments?access_token=XXX
EDIT:
Added the object from the post document. Try clicking the comments connection and then remove the access_token and try and see the difference.
I want to build custom Facebook comments box for that I have done lots of R&D but I am stuck on how will I post comments against the url of different pages of my website.
I want the similar functionality which Facebook's comment box plugin provides like I will drop my custom Facebook comments box on my page template and it will work for all the pages which are inheriting from that template. Which means each dynamic page will have its own commenting box depending on its url.
It would be better if anyone provide me steps to achieve this functionality. I have gone through the Facebook developers forum and have learn commenting against the ID of Objects but I want to start comment box from page Url as Facebook's comments box takes href of the page.
My test work:
When I have posted comments through Facebook comment box plugin against url and get all of them using Graph api so all comments are listing successfully.
but when I try to post the comments against the mentioned url using graph api so I get the exception here.
https://lh3.googleusercontent.com/-KckTuX8DifY/UOFP_e-5ayI/AAAAAAAAAJc/e1wYHZGN9Nc/s629/Get+and+Post+Comments.png
I need answers of following questions.
How will I start commenting against page's url.
My custom commenting box template are shown below
https://lh4.googleusercontent.com/-7iP0_Xi22zk/UOFOn_g_Q7I/AAAAAAAAAJI/FlnDhDTSyZs/s622/Custom+FB+comments+box.jpg
Thanks
I've got a public page on Facebook where people can post comments and I want to list all my page comments in a C# application.
I found this http://developers.facebook.com/docs/reference/plugins/comments/
But it doesn't work, for exemple: https://graph.facebook.com/comments/?ids=http://www.facebook.com/Diablo returns 1 comment but there are more than 5xxxx comments.
The comments plugin is for Open Graph pages outside of the main Facebook site. You cannot use the plugin for your Facebook fan page.
Consider using the PAGE_ID/feed connection see http://developers.facebook.com/docs/reference/api/page/#feed for more information
try: https://graph.facebook.com/comments/?ids={YOUR PAGE URL}
make sure you anter a full url