如何使用 FB 应用程序个人资料照片发表评论?
当存在有效的 ACCESS_TOKEN 时,“facebook 应用程序”可以在 POST 上发布评论。相同的 API 调用是:/xyz_profile_id/comments/?access_token=...
通过允许“facebook 应用程序”访问 xyz_profile_id 来生成 ACCESS_TOKEN。完成的帖子的默认发件人 ID 为 xyz_profile_id,显示他/她的个人资料照片以及评论。
我的要求是这样的:如何将FROM ID更改为appilcation_id,以便应用程序的个人资料照片显示在发布的评论旁边。
It is possible for a 'facebook application' to post a COMMENT on a POST when there is a valid ACCESS_TOKEN. API call for the same is: /xyz_profile_id/comments/?access_token=...
ACCESS_TOKEN being generated by allowing the "facebook application" to get access to xyz_profile_id. The post done will have default FROM ID as xyz_profile_id showing his/her profile photo along with the comment.
My requirement is this: How to change the FROM ID as appilcation_id so that the profile photo of the application is shown beside the posted comment.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您能否提供更多有关您正在做什么以及如何做的信息。不确定“FROM ID as application_id”要求。
例如,在帖子中发表评论:
将生成这样的故事:
您想如何更改此设置?
Can you please provide more information on what you are doing and how you are doing it. Not sure about 'FROM ID as application_id' requirement.
E.g. posting comment to a post:
will generate a story like this:
How do you want to change this?
在这种情况下,您需要使用应用程序 access_token(而不是用户 access_token)对会话进行身份验证。确保该应用程序已安装在您要更新评论的特定页面上。
了解更多:http://developers.facebook.com/docs/authentication/
In this case, you will need to authenticate your session with an application access_token, as opposed to a user access_token. Make sure the application has been installed on that particular page you want to update comments on.
Read more: http://developers.facebook.com/docs/authentication/