Facebook:在 Spotify 上听朋友或我的歌曲总是返回空数组(音乐)
我正在尝试获取当前用户的收听情况和朋友的收听情况。
我确信我的朋友在 Spotify 上听过歌曲,并且这些歌曲已同步到 Facebook,我也可以在我的音乐标签上看到它。但是,当我使用 /me/music
呼叫链接时,我只是得到我喜欢的音乐播放列表,没有朋友听,也没有艺术家歌曲,即使我有几个最喜欢的艺术家。
我尝试使用朋友 uid 来获取他的音乐,使用 /
链接,但返回空列表,即使他在 Spotify 上听了更多歌曲并且我可以看到这些我的音乐墙上的歌曲。
当然,我授予所有用户访问令牌的权限,并将我所有的私人权限设置为“公开”
Facebook API 到目前为止不支持获取音乐信息吗?或者我错过了什么?
谢谢。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要请求 user_actions.music 和 Friends_actions.music 才能访问 Open Graph 中收听的歌曲。
它们记录在这里: https://developers.facebook.com/docs/opengraph/permissions/
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.