music.listen返回一个空数组 [英] music.listen returns an empty array

查看:90
本文介绍了music.listen返回一个空数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发Spotify应用内应用程序.

I'm working on a Spotify in-app application.

我想知道我的朋友在听什么.我目前正在使用 music.listen 开放图谱api,但它会为大多数用户返回空数据.

I like to know what my friends are listening. I'm currently using music.listen open graph api, but it returns an empty data for most of users.

我注册了一个新的Facebook帐户,然后使用该新帐户登录了Spotify.我敲了一首歌,然后注销了.

I signed up a new facebook account then signed in Spotify using the new account. I clikced a song then logged out.

然后我切换回原来的帐户,然后获取新的facebook帐户(我的原始帐户的朋友)的数据

I then switched back my original account then I get data for the new facebook account (which is friend of my original account)

所以我的猜测是music.listen仅适用于新用户(或最近注册)?

so my guess is that music.listen works for only new users (or recently signed up)?

这是真的吗?

已更新:

这是对我有用的

  1. 我在第二台计算机上注册了一个新的facebook帐户
  2. 已安装的Spotify应用程序,然后使用新的facebook帐户登录.
  3. Spotify提示信息,我单击了继续
  4. 我点击了一首歌,并将其分享到了Facebook.

  1. I signed up a new facebook account on my second computer
  2. Installed Spotify app then signed in with the new facebook account.
  3. Spotify prompted a message and I clicked continue
  4. I clicked a song and shared it to facebook.

,在我的主计算机上,我使用另一个Facebook(新Facebook帐户的朋友)登录到Spotify,然后访问了我的应用程序.我的应用程序获取了一个新的Facebook帐户已收听的歌曲列表.

on my main computer, I signed into Spotify with a different facebook (friend of the new facebook account) then accessed my app. My app gets a list of songs that my new facebook account listened.

使用新的Facebook时,我没有看到权限框.

While using my new facebook, I didn't see a permission box.

所以我的问题是...一个新的Facebook如何运作,而不是现有帐户?

So my question is...how come a new facebook works, but not existing accounts?

推荐答案

您肯定具有正确的权限吗?您需要具有user_actions.musicfriends_actions.music权限才能读取用户的音乐活动列表

Do you definitely have the correct permissions? you'll need the user_actions.music or friends_actions.music permissions to read a user's list of music activity

有关更多信息,请参见 https://developers.facebook.com/docs/authentication/permissions / https://developers.facebook.com/docs/authentication/

For more information see https://developers.facebook.com/docs/authentication/permissions/ and https://developers.facebook.com/docs/authentication/

请参见 https://developers.facebook.com/docs/authentication/permissions/#open_graph_perms 专门用于音乐

然后可以在/USER_ID/music.listens中访问

It will then be accessible at /USER_ID/music.listens

您还确定要检查的用户实际使用了其中一种社交音乐应用,并且您在该应用中的活动对您可见吗?

Are you also sure that the users you're checking for actually use one of the social music apps and their activity in that app is visible to you?

这篇关于music.listen返回一个空数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆