如何更新用户的 Facebook 状态?
我在 Stackoverflow.com 上查看了许多类似的问题,并在 Google 中进行了搜索,但仍然找不到答案,所以我发布了这个新问题。
我有一个第三方 PHP5 网站,用户可以在其中编写短信。我希望用户能够单击按钮将该消息作为 Facebook 状态共享。 据我了解,这可以使用 Facebook API 和 Users.setStatus 来完成。但我不知道从哪里开始 - 我是否在我的网站中实施 Facebook 连接?除了这种能力,我不需要任何东西,所以我不需要 Facebook 的“画布”页面。 我要开始申请吗? 有人能指出我正确的方向吗?
谢谢!
I looked at many similar questions here at Stackoverflow.com and searched in Google but still could not find an answer, so I am posting this new question.
I have a 3rd party PHP5 website in which users can write a short message. I want to have the ability for the user to click a button to share that message as a facebook status.
It is in my understanding that this can be done using the Facebook API and Users.setStatus. I am not sure where to begin though - do I implement Facebook connect in my site? I don't need anything but that ability, so I don't need a facebook 'canvas' page.
Do I start an application?
Could someone point me in the right direction?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要:
连接
应用
status_update
扩展权限,如果没有
弹出权限对话框
Status.set
API 调用每个的详细信息对于一个答案来说,步骤太大了,但希望这是一个“正确方向的点”。
You need to:
Connect
application the
status_update
extended permission, and if not
pop up the permission dialogue
Status.set
API callThe details for each step are far too big for one SO answer, but hopefully that's a "point in the right direction".
您需要创建一个 Facebook 应用程序,以便使用
Users.setStatus
设置某人的状态。不过,您应该记住,在您执行此操作之前,用户必须安装您的应用程序并允许它代表他们发布。请访问 developer.facebook.com 开始使用。
You'll need to create a facebook application in order to set someone's status with
Users.setStatus
. You should keep in mind that users will have to install your application and allow it to publish on their behalf before you can do so, though.Check out developer.facebook.com to get started.