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

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?

Related

Facebook Graph API: How can I retrieve the number of views of a video I shared from another profile using the Facebook Graph API?

I have a business manager account for my Facebook profile and I re-shared a video from another profile. How can I retrieve the number of views that my re-share accounted for through the Facebook Graph API?
If the video were posted directly to my profile rather than re-shared, I'd be able to use the /v2.8/{video-id}/video_insights method to retrieve the video stats, but that does not appear to be available for re-shares. The only insights that I can find for re-shares appears to be /v2.8/{post-id}/insights, but that does not include video views.
For example, here is a Facebook post by The Dodo where they are re-sharing a video by Discovery News.
This information can be retrieved by making a call to /v2.8/{post-id}/insights/post_video_views

Get users watching facebook live video?

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.

How to get videos uploaded by user using Facebook Graph API?

I'm developing an application to show videos and images from facebook by using the Graph API. I've followed the Graph API document and able to show all images. But in the case of videos I'm getting only the videos where the user is tagged-in.
I need to get the user uploaded videos too.
How can I get the videos?
The Graph explorer link : https://developers.facebook.com/tools/explorer/APP_ID/?method=GET&path=me%2Fvideos&version=v2.3&
After some changes in the Graph API calls I've found the solution.
https://developers.facebook.com/tools/explorer?method=GET&path=USER_ID%2Fvideos%2Fuploaded&version=v2.3&
This'll help us to get all the uploaded videos.Where USER_ID is the id of the user who's signed in.
/me/videos should return all videos, tagged and uploaded. You can restrict to one or the other by using the type parameter: /me/videos?type=uploaded

facebook app action in user timeline

i made a facebook app, i googled it many times but not place gave me an answer
all what i want is to post on the facebook app users timeline.
something like socialcam app, when user watch a video you will be able to read on that user timeline that he/she watched that video.
you can access my app from this link and i will appreciate if you can tell me how can i post in user timeline
http://apps.facebook.com/asmgxtestonetwo/?qtnid=20
You can use Open Graph Actions (there's a built-in action "watch") and post onto the timeline using Aggregations:
Open Graph Actions
How-To: Defining an Aggregation

Fetching all videos from facebook user news feed page and storing it in database [duplicate]

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.