Currently I have implemented facebook realtime updates . But here I am getting only user actions related to movie likes, statuses and normal likes. How can i get actions like music.listens, places checkins, videos watched etc.
You can only get updates for objects listed in here: https://developers.facebook.com/docs/graph-api/real-time-updates/v2.2
Related
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.
Using the Realtime Updates I can get notified when a user uploads a photo, but is it possible to get notified when one of their friends uploads a photo?
According to the docs you can't subscribe to changes to User.home (the user's news feed). This is where you would see friends' photos, so I conclude you can't get notifications for these events.
I am using rails and I need to fetch all user videos and user friend's videos from facebook and store it in our database.
Video's which is like
User and user friend's liked videos,
User and user friend's shared videos,
User and user friend's tagged videos,
User and user friend's commented videos,
User and user friend's uploaded videos, etc
So Is there any easy method to retrive all these videos at same time?
Videos in the user's stream will be in the stream object (see https://developers.facebook.com/docs/reference/fql/stream/). Play around in the Graph API explorer using fql?q={your query here} to see the results. You can play around with the where clause to get various groupings back. However, from my experience, to get all 5 categories of videos, you will have to run multiple queries. See documentation on multiquery query (Good examples here on this old REST API documentation: https://developers.facebook.com/docs/reference/rest/fql.multiquery/) Some of the non deprecated APIs support this.
Remember the Graph API explorer is your friend.
I am using rails and I need to fetch all user videos and user friend's videos from facebook and store it in our database.
Video's which is like
User and user friend's liked videos,
User and user friend's shared videos,
User and user friend's tagged videos,
User and user friend's commented videos,
User and user friend's uploaded videos, etc
So Is there any easy method to retrive all these videos at same time?
Videos in the user's stream will be in the stream object (see https://developers.facebook.com/docs/reference/fql/stream/). Play around in the Graph API explorer using fql?q={your query here} to see the results. You can play around with the where clause to get various groupings back. However, from my experience, to get all 5 categories of videos, you will have to run multiple queries. See documentation on multiquery query (Good examples here on this old REST API documentation: https://developers.facebook.com/docs/reference/rest/fql.multiquery/) Some of the non deprecated APIs support this.
Remember the Graph API explorer is your friend.
I am working on an app that is integrating the Facebook OpenGraph. I'm trying to subscribe to Real-Time Updates so that I can have my app automatically updated whenever friends of my users check in somewhere.
It appears that Connections are available in realtime with the User Object and checkins are a connection but through the OpenGraph Explorer I can only see checkins where people have tagged myself.
When you subscribe to realtime updates, Facebook only sends you data about the users who have taken actions in your app, not their friends.
But you will get all updates about a user which has added your app - which includes when one of their friends tags them in a checkin - along with that user's own checkins.