目前,我可以使用我的一些网页的目标向已经喜欢这些页面的Facebook用户发布新闻订阅源更新.
现在我正在尝试测试新的开放图和自定义操作来做同样的事情; 将更新发布给在我的网站上进行特定操作的用户.但即使我得到我的应用程序的publish_actions权限,并使用我的Facebook帐户和我的应用程序的一些虚拟测试用户帐户(我知道,直到时间轴发布,只有开发人员和测试用户可以使用所述权限),当我尝试发布我收到此错误消息:
"{"error":{"message":"(#200) Requires extended permission: publish_actions","type":"OAuthException"}}".
我还将我的应用类型更改为游戏,以便我可以从auth对话框中正确获取publish_actions权限.
有什么想法可以帮助我吗?或者我必须等到时间线发布才能正确测试新的开放图表发布?
编辑:请求发送包含这些参数;
to: https://graph.facebook.com/feed
["access_token": "given access token",
"message": "post message",
"caption": "post caption",
"picture":"picture url",
"link": "link to post",
"description": "post description",
"ids": "object ids separated by commas"]
Run Code Online (Sandbox Code Playgroud)
Edit2:我通过添加到时间轴按钮询问权限:
<fb:add-to-timeline show-faces="true" mode="button" perms="offline_access,publish_actions,publish_stream"></fb:add-to-timeline>
Run Code Online (Sandbox Code Playgroud)