I'm experimenting with Facebook Server-Sent Events for Live Comments (SSE) and I try to retrieve in real time every comments made on a live video stream displayed on a Facebook page.
The documentation states that "comments are prioritized based on quality so if the comment rate exceeds the requested rate then you will receive the higher quality comments.", but even if i'm below the rate (set at ten_per_second) some comments are filtered. The purpose of my experiment is to retrieve a pattern (an emoji) from the comments, it's not admissible for me to miss some of them.
The other approche I took is to use the Live Video Comments endpoint but I can't get the user name who posts the comment I only get data like
{
"created_time": "2018-11-14T12:39:01+0000",
"message": "test message",
"id": "2292500244366991_2292502427700106"
}
with a call to <video-id>/comments?live_filter=no_filter&order=reverse_chronological&filter=stream
Even with Page access_token I don't get these names and ids...
Does anyone succeed in retrieving every comments with poster name from a live video?
Thanks
EDIT
I had trouble with my page so I recreated one and now I manage to get the Live Video Comments endpoint to work as expected. But still no luck Facebook Server-Sent Events for Live Comments!!!
I guess I have to stick with polling, deal with Facebook Graph API rate limits and forget streaming...
Related
I'm trying to get ALL comments (and the replies to those comments) from a Facebook page and an specific date range on API Graph.
Not just the comments from me/posts or me/feed, but all the comments my Fanpage gets, including those from Events, Products, Photos (because if you post a collection of photos the me/posts edge just include the main posts, not every single photo attached in the post), Videos, Live Videos, Offers, and, if its possible, Dark Posts (from Facebook Ads).
Is there a way to make this? I tried using me/notifications edge but most of the notifications group several comments together in a single object (E.g. "Bob, John and Mary commented on the link you shared.").
By the way, there is actually and app that makes this, called "Feed Comments" (id=9675640871), actually the responsible to send the notifications when your fanpage gets a comment.
But I don't know how it makes it.
Thanks!
Is there a metric that I can pull from the Facebook Graph API that would tell me either/both Response Rate and/or Average Response Time from a page?
I'll attach a screenshot as to what I'm referring to:
I'm seeing this when I go to Settings -> Insights -> Messages, but would love to know how to pull this information from Facebook.
Anyone know the specific metrics or queries I could use to obtain this information?
EDIT: For anyone who offers the displayed_message_response_time, this doesn't work because it is set by the user AND returns a string (not numeric value).
Afaik there is only one way to get the reaction time:
Use /page-id/feed?fields=id,from to get all posts with the info who created them
Filter out the user posts with the "from" field
Get the time between the user post and a page answer (if there is one) post by post
Calculate the average response time based on the resulting times
I believe Fanpage Karma does it that way.
I am uploading videos to a page as described here: https://developers.facebook.com/docs/graph-api/video-uploads
This gives me a specific ID that identifies that video. The video is also "posted" to the page feed automatically.
However, I cannot get insights for that post using the Page Video Posts metrics (see https://developers.facebook.com/docs/graph-api/reference/v2.5/insights#page_video_posts). The video itself is (logically) not recognized as a post and as such does not have an insights edge.
Is there some way to get metrics for a video on a page from the video ID itself? I know there are restrictions (must be page, 30+ likes, etc.), but these have all been fulfilled.
It seems somewhat backwards to have to upload a video, suppress the video auto-posting and then make an actual post with the video in it to get the insights for that post (and why is the video statistics related to the post instead of the video?!).
I am using python, but really any examples showing the actual requests being made will be helpful.
Previously working data feed from FB app https://graph.facebook.com/APP_ID/feed?access_token=ACCESS_TOKEN has stopped working.
Response is now an empty data set:
{
"data": [
]
}
Nothing has changed since on the part of the app.
There were at least 50 posts in the app wall before this happened.
Any help would be highly appreciated.
There were at least 50 posts in the app wall before this happened.
There is no such thing as an “app wall” any more – per se.
To have a page for an app, you nowadays have to create one especially – apps do not have corresponding pages automatically any more.
There has been a transition period, where you could turn an old app page into a “normal” page and link your app with that – but I don’t think that’s possible any more.
So, do you have a page that is linked to your app? (What is the ID of your app, so that we can check it out ourself on the API?)
Given a Facebook user id and a Facebook page id, is there any way to get find all interaction that user has done on the page (posting comments, liking posts etc) without first downloading the entire feed?
I have access key for the page and if necessary I can get one for the user.
For example on the page 315390295169855 (Ninja Saga page) user ID 100002190613755 has written a comment on the post 315390295169855_401357983239752. I would like to search that page so that such interactions could be found.
Things I have tried
I tried
https://graph.facebook.com/315390295169855/feed?q=100002190613755&access_token=FOO
But that doesn't seem to do the trick.
I have also considered first downloading the entire feed and then searching through it. However it turns out to be impractical, as for example the Ninja Saga page has tens of thousands of interactions and would likely cause the user to start playing farmville instead of waiting for the megabytes-long pre-search download to complete.
You have the answer there - pull the list of comments from the Posts you retrieve on the /feed connection of the page - i think the default return from a call to /feed includes a small number of the recent comments on each Post too, and you can retrieve the rest with a call to /POST_ID/comments