Get Facebook comments from a non-Facebook site URL - facebook

Is there still a way to get Facebook comments from a site URL using Graph API?
I tried converting a site URL to an object-id, but it failed using Graph API Explorer.
Some older posts mention using /{object-id}/comments, some mention ?id=https://she.hr/nevjerojatni-spoj-dragocjenih-bisera-i-pouzdane-njege-uz-nivea-pearlbeauty-black-antiperspiranate/&fields=og_object{comments{message,from{name,%20picture}}}
But I couldn't get a single comment.
I also found fb_comment_id in comments' IFRAME, but couldn't get data on that one either on Graph API explorer (using /{comment_id}).

Related

Upload a video to Facebook Graph API, and tag a place

I'm trying to "attach" a page to an uploaded video (via graph api) on Facebook, without any luck.
Creating a post (via /feed endpoint) and tagging on a place is working. Sharing a picture and tagging on a place is working. But not videos.
As I've seen in the official docummentation, the flow to "attach" a page is to use resumable uploads and then update the video via POST /<video_id> with { place: <page_id> }. But it's not working at all, besides the fact the API is returning { success: true }
I've also tried other alternatives:
Upload the video at once (not resumable).
Just specify the video url (not even getting the <video_id>).
Doing the POST /<video_id> update request via their Graph API explorer console.
I'm using version 2.8, the graph-video endpoint and have publish_actions permissions.
What could I be doing wrong? How do you do this?
Thanks.
I couldn't find any way to do this via the Graph Video api. The final solution for me was to create a feed post, via /me/feed specifying:
{
place: pageId,
coordinates: '{latitude,longitude}'
link: 'url'
}
being link an url pointing to a website that have the proper Open Graph attributes.

Facebook API replaces part of URL

I am querying facebook posts of a specific fb-page and reading the posts to view them on a website. In a new post they've just created, there's a URL that links to an external page. Normally, facebooks API delivers this link just as is.
But this time, it replaces a part of that URL with a random(?) number. The link that's in the post is: www.roboterwelt.de/magazin/videos/10-roboter-die-die-welt-veraendern-werden/ and what i am getting is www.roboterwelt.de/10153713783568127/videos/10-roboter-die-die-welt-veraendern-werden/
This is my query URL (the app is not running via any Facebook SDK): graph.facebook.com/v2.5/me?fields=name,picture,posts.limit(100){comments.summary(true),likes.limit(0).summary(true),link,full_picture,created_time,id,message,type}&access_token=*
The fb-post i am working with is https://www.facebook.com/markedingplus/posts/664595060338842
Do I have to send any other paramters? Does anyone know what that number is?

Photo post insights with Facebook Graph API v2.4

We are using version 2.3 of the FB graph API to get insights (specifically viral impressions, reach, engaged, talking about, and impressions) for a page photo post. It works without issue. However when we try to make this same call in version 2.4, it fails. See an example call we used in the Graph API explorer below
/1129724967054634_1214739968553133/insights/?metric=['post_impressions_unique']
We've tried both PageID_ObjectID and PageID_Photo ID in the call, but neither returns the insights data mentioned above. We can get likes and comments for the Object, but nothing at all for the Photo. Are we missing some change in the way Facebook treats page photo posts between versions?

How to get facebook post permalink

When using Facebook's Open Graph API to get a list of posts, what we get is a post id like XXXX_YYYY which can be converted to facebook.com/XXXX/posts/YYYY
But these links cannot be used with the facebook embed plugin : https://developers.facebook.com/docs/plugins/embedded-posts/
Eg - https://www.facebook.com/permalink.php?story_fbid=229021587215556&id=11239244970&stream_ref=10 works, but https://www.facebook.com/11239244970/posts/229021587215556 doesn't, even when both the URLs load the same post.
How can I fetch the permalink for a post so that it can be used in the embed box.
As answered by 林果皞:
The best way seems to be using facebook's FQL.

Find related facebook interests using graph API

I'm trying to figure out a way find related interests on Facebook. E.g. I want to search for Cityville and result should be Farmville, Castleville etc.
Is there an API to support this, what are the alternatives?
You can search the JSON result by the Graph API with the url https://graph.facebook.com/me/likes?access_token={your_token_here}, replacing the "me" with the Facebook User ID/Name.
If you are looking for pages search, you can use the same API, with the url https://graph.facebook.com/search?q={keyword}&type=page&access_token={your_token_here}.