I’m trying to figure out how to use music.listens open graph api. Here’s steps I did
- Open Spotify app and then play a music then shared that music on facebook.
- login to facebook.com then navigate to https://developers.facebook.com/docs/reference/api/
- then get access token from the page.
- access https://graph.facebook.com/me/music.listens?access_token=AAAAAAITEghMBAIcvJFBXTz9Io9DlhF59TTbusrBjGto7ZCce783D1CSHkBgsknGZB2xubQNiEg6ZBxO1GZCpMZCGbJCsFAJKPNmUQU70uGQZDZD
but it always returns empty.
Am i doing something wrong here?
The
me/music.listensendpoint provides data for the current application. Not all applications.Only if you have the given permission,
user_actions.musicwill you be able to access all applications. Without it, you can only access the current application actions.