Beats Music API get user playlists - beatsmusic

Is there a way to get all playlists created by a user in the Beats Music API?
Is there a way to get all playlists followed by a user in the Beats Music API?
On looking at the docs, it seems the only way to get a playlist id is to create a new playlist - then you can work with that playlist, because you just created it. I'd like to be able to edit existing playlists created by a user, and browse songs on playlists that the user follows.

From the documentation, it appears that you can get a list of user-created playlists.
You can retrieve a user's playlist collection. If the playlists are not public, they must be owned by the user identified by the access token.
The response includes the playlist ids which is what you're looking for.
As for a user's subscriptions: yes as well.

Related

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.

Fetching all user and user friend's videos from facebook and store it Database

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.

Facebook: Listening songs on Spotify of firends or me always return empty array (music)

I'm trying to get the current user's listens and friends listens.
I am sure my friends has listened songs on Spotify and those songs has been synced to Facebook, and I also could see it on my music tag. But when I use the /me/music call link I just get my liked music playlist, no friends listens, also no artist songs even though I have several favorite artists.
And I try to use friend uid to get his music, use the /<friend-uid>/music link, but return empty list even though he has listened more songs on Spotify and I could see those songs in my music wall.
Of course, I grant all the user permission for access token and make all my private permission to 'public'
Is Facebook API not support to get music info till now? Or am I missing something?
Thanks.
You need to ask for the user_actions.music and friends_actions.music to access the listened songs in Open Graph.
They're documented here: https://developers.facebook.com/docs/opengraph/permissions/
From everywhere i've looked, it seems to be still in development and not readily able to pull. Which is a bummer.

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?

Any API for getting deleted IDs from the Graph API?

In attempting to keep photo URLs in sync between my application and Facebook, I'd like to detect if a photo is deleted from an album. Is there any API for getting something like recently deleted IDs, or is the only option to walk the collection (in this case, an album) and compare the IDs to ones stored in my database?
Sorry, there isn't an API for getting deleted IDs. You would, as you mention, need to walk over all the photos to figure out which one has been deleted.