Get users watching facebook live video? - facebook

Is there an endpoint for getting the current users watching a facebook live video? Looking at the reference at https://developers.facebook.com/docs/graph-api/reference/live-video/, I can get the total number of users currently watching, but there doesn't appear to be an edge for retrieving those users... is this even possible?

No, that's not a feature supported by the Graph API at the moment. There are edges for comments, likes, and reactions, so you could get a list of some of the users who have watched with those edges, but there is no way to list all viewers.

Related

Obtaining Facebook graph api data for user generated posts

I am having some trouble determining how to go about a certain issue. I am pretty new at trying to obtain social media data. Say an internet user publishes something that is essentially a post from from a website that is external to Facebook, to the user's Facebook feed. Is there a way to obtain the amount of likes, shares, comments, and other insight type data from those posts? I'm aware/currently learning about Facebook's open graph api, but I am unsure if it allows for this type of query. It seemed to be primarily for people, pages, and places, and I have not found a way to query only posts from a website specifically.
To be more detailed, a user will have the option of posting a jpeg type image to their Facebook feed. This is for a single website, where the website would like to do this in order to gauge how those posts are being perceived and interacted with by other Facebook users. Is there a way to obtain data on these specifically?
Also, if so, is there a way to tag or apply specific identifications to categories of these posts in some way before they are posted by the user to their feed, to allow for segmentation of the data? Any help is very much appreciated.

Facebook Graph API insights

I'm new on working with Facebook and honestly I found it very confusing, terminology and documentation seems to be very ambiguous in many cases. Can somebody please help me out with a plain english explanation on how I can achive the following?
Post and image to Facebook (on the user page) and then check the stats (insights) of that post.
Till now I have managed to:
1) Create an app
2) Post the image on the user page with the desired message
I'm not able to understand how I can retrieve information about the particular image which was uploaded through my app. I want to know how many people have viewed that image, how many likes did it get, how many times it was re-shared.
Is it possible at all?
I'm posting to /photo not too /feed and I will like to keep it this way if it is possible.
Sorry if this was answered already but I spent a few hours trying to find an appropriate answer but wasn't able to get the right documentation.
UPDATE 1
After having a couple of days off from this topic and receiving the first 2 answers, I took another dive into this. Now I have tried the Graph API Explorer as suggested, and using the ID of a POST I can get some details about the POST, but the insights aren't showing anything, just next and previous.
My goal is to be able to gatther some stats about the pictures uploaded through the app. If this is not possible directly what should be the approach I need to take?
I don't believe a personal /photo has /insights attached to it - the Insights Object documentation page suggests that they do not - but you should be able to get likes, shares, and comments via the API.
It would appear FB has launched a redesign/reorganization of its documentation in the last couple of weeks, but the documentation for the /photo graph object is here -- you will need the user's Access Token, and the API endpoints you're looking for each have links to their own documentation pages there, including example code for each type of request.
Edit (summarizing discussion in comments):
There is no method via the Facebook API to gather insights for all photos posted to individual user timelines via an app. The app can gather likes, shares, and comments for each of those objects individually via API requests, and can make API requests for insights for photos posted to its own timeline. Neither of those options solves the intended use case here.
I'd recommend a solution that uses Sharing rather than an app integration, as this allows for better access to insights on the photos being shared. This is also a much simpler integration, and less brittle wrt future Platform changes. The main tradeoff is that the original photos being shared are expected to expire after a couple of months -- if this is unavoidable, I'd suggest implementing a redirect for requests for expired objects on the site.
We are able to get different kind of photos or picture Using Graph API
like as below:
1.Page Photos
Photos for a Facebook Page.A Page Access Token is required for all methods.Find here
2.Page Picture
Picture belonging to a Facebook Page. Find here
3.Photo
Represents an individual photo on Facebook. Find here
4.User Photos
Photos for a person.Find here
I hope it's helps you.

Facebook API - get watched movie rating

In facebook you can rate movies you watched with a five-star rating. Is there anyway to get this rating using Graph API?
This can be accessed via the
GET /me/video.rates
endpoint. See here https://developers.facebook.com/docs/reference/opengraph/action-type/video.rates/#read for the documentation. As far as I know you need the "user_actions.video" permission, althought this is not explicitly stated in the permission docs below https://developers.facebook.com/docs/facebook-login/permissions#reference-opengraph

Using the Facebook Graph API why is it possible to read a list of videos posted to an event but not a list of photos?

As far as I can make out from reading the Facebook Graph API documentation for Events -
http://developers.facebook.com/docs/reference/api/event/
...it is possible to get a list (array) of videos that have been added to an event but NOT a list of photos. Why am I not able to get photos belonging to an event? Am I missing something here?
thanks
It's because the current implementation of the Graph API does not have the connection from Page Event to photos. The only "image" connection is the picture connection. This is probably because they haven't got around to expanding their API to handle all cases. The videoes connection is definitely out of the ordinary. It may have been placed in there early on in the development of the Graph API to hand one specific facebook partner's needs.
I can get a list of Photos by issuing a /{eventid}/photos request for an event that was created by my app, some event graph api calls are dependent on the fact that your app created the event. i.e. you can't edit an event that wasn't created with your app. I think for the photos request, you need read_stream, user_events, and maybe friend_events permission..

Is there an Facebook API to retrieve music recent activity, especially music on Spotify?

I want to get songs list which played in Spotify, and I could see it under 'recently activity' feed, but how to get those recently activity feed info Using facebook API?
Yes, I know I could get common feed by 'me/feed', but is there a way to get recently activity feed like 'me/activity feed'?
It seems that Facebook has prepared the api for it, but it is not working yet. I guess it will be available on https://graph.facebook.com/me/music.listens at some point.
Read more here:
https://developers.facebook.com/docs/beta/authentication/read/ and
Using Open Graph API, can I see when users Add To Playlist or Star tracks in Spotify?