代表用户在用户墙上发帖
我试图弄清楚使用 Graph API 是否可以实现以下操作:
- 代表该用户在用户墙上发布一条消息(具有publish_stream 和 Offline_access 权限集),因此发布者不依赖于当前会话。
这似乎可以通过旧的rest api实现(stream.publish) 。不过,此函数有一些已知的错误,并且似乎已被弃用。
使用新的 api,可以在用户墙上发布,但它不会将海报作为参数(就像stream.publish 一样)。请参阅此处。
这是因为 Facebook 不再允许此类第三方发布,还是我在这里遗漏了一些东西? 任何帮助将不胜感激,
I'm trying to figure out if the following is possible with the Graph API:
- Post a message on the wall of a user (who has permissions publish_stream and offline_access set) on behalf of that user, so the poster doesn't depend on the current session.
This seemed to be possible with the old rest api (stream.publish). This function has some known bugs though and seems te be deprecated.
With the new api it's possible to publish on a users wall but it doesn't take the poster as an argument (as did stream.publish). See here.
Is this because Facebook doesn't allow such third party publishing anymore, or am I missing something here?
Any help would be greatly appreciated,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从这里 http://developers.facebook.com/docs/reference/javascript/FB .api
这是 javascript 版本,但我很确定 php 也有一个等效的版本
from here http://developers.facebook.com/docs/reference/javascript/FB.api
it is the javascript version but i am pretty sure there is an equivalent one for php