使用通用开放图对象和操作以及publish_actions 权限?
我正在尝试使用 beta 开放图 API 来发布有关用户在我的应用程序中播放歌曲的信息。除了“正常”开放图文档之外,我还发现了这些: https://developers.facebook.com/docs/opengraph/music/
不幸的是,我我无法在开发应用程序中将“music.listens”等通用操作或“music.song”等通用对象添加到我的应用程序中。然而,为了获得publish_actions权限,我似乎有义务至少添加一个操作、一个对象和一个预览聚合。如果我不这样做,身份验证对话框将不会请求publish_actions 权限。
当我完成所有这些操作时,我可以获得publish_actions权限,但仍然无法发布正在听歌曲的用户。
当我尝试通过向此网址发布请求来发布时,出现 500 错误“OAuth“Facebook Platform”“unknown_error”“发生未知错误。”: https://graph.facebook.com/me/music.listens?song=http://open.spotify.com/track/34uKquOrQLgzBsUbFTkMTc&access_token=[...]publish_action
权限是否绑定到我的操作和对象已在我的应用程序的命名空间内创建?如果是这样,当我想对通用对象执行通用操作时应该怎么做?或者这可能只是我无法使用 Spotify 歌曲进行测试?
希望有人能帮忙。 欧文
I'm trying to use the beta open graph API to publish about a user playing songs in my app. Besides the "normal" Open Graph docs, I found these:
https://developers.facebook.com/docs/opengraph/music/
Unfortunately I am not able to add generic actions like 'music.listens' or generic objects like 'music.song' to my app in the dev app. In order to get the publish_actions permission, however, I seem to be obliged to add at least an action, an object and a preview aggregation. If I don't, the auth dialog won't ask for the publish_actions permission.
When I do all this, I am able to get the publish_actions permission, but still I cannot publish a user listening to a song.
I get a 500 error 'OAuth "Facebook Platform" "unknown_error" "An unknown error has occurred."' when I try to publish by POSTing a request to this url:
https://graph.facebook.com/me/music.listens?song=http://open.spotify.com/track/34uKquOrQLgzBsUbFTkMTc&access_token=[...]
Is the publish_action permission bound to actions and objects that I have created within the namespace of my app? If so, how should I go about when I want to perform generic actions on generic objects? Or could this just be that I cannot use the spotify song for testing?
Hope someone can help.
Erwin
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
内置的音乐动作和对象目前仅可供音乐发布合作伙伴使用。
同时,请创建您自己的自定义歌曲对象和聆听操作。
publish_actions 是用于所有自定义和内置操作发布的权限。
The built in music actions and objects are currently only available to the music launch partners.
In the meantime, please create your own custom song objects and listen actions.
publish_actions is the permissions used for all publishing of actions, custom and built-in.