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?

Matthieu Brucher
  • 21,634
  • 7
  • 38
  • 62
Jordan Warbelow-Feldstein
  • 10,510
  • 12
  • 48
  • 79

2 Answers2

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.

Paul Tarjan
  • 48,968
  • 59
  • 172
  • 213
  • 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? – Geoff Chappell Sep 27 '11 at 12:37
  • This is not live to users yet, only developers until Timeline launches. – Paul Tarjan Sep 27 '11 at 18:55
  • 1
    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. – Geoff Chappell Sep 27 '11 at 22:35
  • I would also like to see additional documentation about this. – Dan Healy Oct 18 '11 at 21:46
  • 1
    As asked in the original question- how do you get listens for friends and friends of friends (FQL?)? – John Oleynik Dec 14 '11 at 04:16
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.

  • 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' – Igy Nov 05 '11 at 08:55
  • @Igy it is actually the inverse. https://developers.facebook.com/docs/beta/authentication/read/ – Paul Tarjan Nov 07 '11 at 01:16
  • *facepalm* thanks; not sure how i got it not only wrong, but COMPLETELY wrong – Igy Nov 07 '11 at 08:47