How to query facebook graph api for comments using social plugin - facebook

I have a website that implements the facebook comments social plugin on various pages.
Inside of facebook I can go to
https://developers.facebook.com/tools/comments/<app id>
and see all the comments that come in under this app.
I'd like to understand how I can query the graph api for these comments. It isn't immediately obvious from going through the graph API docs.
i think this is what i want
https://developers.facebook.com/docs/graph-api/reference/v2.8/object/comments/
but i'm not sure what the object-id should be in this context

Related

post to instagram and facebook using api

Let's say I have a facebook page, if any post happens on that page the same content should also get posted automatically on my instagram as well. how can I achieve that, I have been looking at facebook graph api documentation for hours now but I am very confused, any guideline on which approach should I take?
Instagram does not offer any API to post to their platform. I am afraid there is no way.
Edit: There is an option, but it is limited to IG business accounts: https://developers.facebook.com/docs/instagram-api/guides/content-publishing
Facebook Graph API:
https://developers.facebook.com/docs/graph-api/ and Instagram Graph API: https://developers.facebook.com/docs/instagram-api/
In order to post anything on Instagram, you need a creator or a Business account. Also, you need to connect Facebook and Instagram in order to post anything. That is because posting on Instagram is done indirectly through Facebook pages. See here for more info on how it can be done: https://developers.facebook.com/docs/instagram-api/overview

Hidden comment retrieving from plugin facebookcomment using API Graph facebook

There is facebook Comments Plugin in one page of our client. I get all comments through fb.subcribe events and store them in our database.
Now We have to hide those comments, I have to go to the developers tool to make moderation because I am only the administrator that the client has added.
My question is:
Is there any way to use API facebook Graph to hide the comment? Does someone already make this action by API graph facebook.
Thanks a lot

Why the number of comment in Facebook plugin is different from number of comment in Facebook API?

The question is as what the title stated. For example:
Social Plugin
There are only 2 comments in the Facebook plugin for that link.
Facebook API
The Facebook API says that there are 47 comments. What is the cause of the different? My thought is that the social plugin only counts the number of comment via the plugin, while the Facebook API one counts all the comments including the social plugin and any comment on the link in the Facebook. Am I wrong?
Check out data from Graph API.
It returns precise data, comment count for a Url, which is commented by a social plugin.
You, on the other hand, are accessing data from table link_stat, which is used for, as per offcial documentation
An FQL table containing counts that show how users on Facebook are interacting with a given link.
In the end, I agree with you, you get all activity for that link on the whole FB.

Streaming Facebook Pages Wall (not just the pages posts)

I have looked on 100 forums looking for a simple answer for how to stream every post on a Facebook page's wall (not using the like box for just the pages posts, but everyone's posts). I am the admin of the page and I am already using the like box for my posts so I understand that, however the developer pages of Facebook are too confusing for such a simple task. I will be inserting the stream into an HTML page which will be hosted on www.1and1.com so it can handle most, if not all code.
I know it is a lot to ask but is there evem someplace online that will offer plain step-by-step instructions for my specific needs?
If the social plugins they make available aren't sufficient, you could just pull in the feed with the Facebook graph api using the javascript sdk (easiest) or there is probably an SDK for whatever programming language you know. For example, you can see a list of posts on the coca cola page using the Facebook graph explorer:
https://developers.facebook.com/tools/explorer/?method=GET&path=cocacola%2Ffeed
The /page/feed method needs an access token, but you can use the graph explorer to get an offline_access token that you can use to pull the data in. This may eliminate javascript sdk usage though unless you want to first prompt users to authenticate your application. But otherwise you would just parse the json feed that is returned in the url indicated in the graph explorer (and add your access_token to the end of the url).
Here is a good PHP tutorial on how to display a groups feed on a web page. It would be just as easy to display the posts from a page (since you are the admin)
Just replace the group ID with the page ID. Here is a link to the feed for the Facebook Platform feed graph api results. More info on FB Pages here.

Accessing Facebook Likes and Interests with the old rest api

In their recent changes, Facebook now links your likes and interests with community and fan pages. How can I retrieve this information using the old rest API and Facebooker. I tried things like this to get the music preferences :
facebook_session.user.music
but I get a blank string instead of the relevant connections. Is it mandatory to use the new Graph API in order to make this work?
I believe this data can only be accessed via the Graph API.