Using Open Graph API, can I see when users Add To Playlist or Star tracks in Spotify?
Asked Answered
J

2

8

How would I access when a user (and a friend of a user) adds a song to a playlist, or stars a song in Spotify, Rdio etc?

Jacquie answered 24/9, 2011 at 16:2 Comment(0)
M
11

http://graph.facebook.com/me/music.listens

http://graph.facebook.com/me/music.playlists

You have to get the user_actions.music permission before you can read those.

Mulderig answered 24/9, 2011 at 19:0 Comment(5)
Does this actually work yet? adding those permissions to "scope" returns an error, and adding to "perms" as the referenced example does doesn't seem to do anything (no new auth dialog and music.listens returns empty collection). Is there some other necessary piece?Trashy
This is not live to users yet, only developers until Timeline launches.Mulderig
Thanks....but what does that mean exactly? I'm a developer, use the developer app (and so see timeline), but can't get this to work. Is it being specifically enabled/whitelisted for certain apps? I'm happy to wait it out and assume that it will start working at some point, but if there's something I could do now - or if I'm doing something wrong - I'd love to know.Trashy
I would also like to see additional documentation about this.Kerr
As asked in the original question- how do you get listens for friends and friends of friends (FQL?)?Selfcentered
P
11

The correct permissions is user_actions:music, not a dot.

  • user_actions:music
  • user_actions:video
  • user_actions:news

http://graph.facebook.com/me/music.listens

http://graph.facebook.com/me/music.playlists

Those 2 endpoints still returns empty arrays.

Photosphere answered 17/10, 2011 at 9:43 Comment(3)
The colon indicates 'global' and the '.' is a delimeter between app namespace and action type (i.e music:listens refers to global listens of music (i.e Spotify, Deezer, Rdio,etc) - music.listens refers to 'listens' actions registered to 'apps.facebook.com/music'Storey
@Storey it is actually the inverse. developers.facebook.com/docs/beta/authentication/readMulderig
facepalm thanks; not sure how i got it not only wrong, but COMPLETELY wrongStorey

© 2022 - 2024 — McMap. All rights reserved.