Facebook FQL / Graph - 获取所有当前的 Poke
我怎样才能得到我当前的戳(和戳回来)?
通常它们必须在“通知”表中......我很困惑。
希望有人能帮助我。
How can I get my current pokes (and pokes back)?
Normaly they must be in the table "notification" ... I am confused.
Hope someone can help me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这是一个工作示例,提示 read_mailbox 权限并使用 /me/pokes 检索用户 pokes。这也可以使用相同的逻辑以任何服务器端语言来完成。
获取戳:
戳回来:
要回拨用户,您可以向 /userid/pokes 发出 HTTP Post,但您需要被 Facebook 列入白名单。否则你会得到这样的回复:
Here is a working example that prompts for read_mailbox permission and uses /me/pokes to retrieve a users pokes. This can be done in any server side language too using the same logic.
Get Pokes:
Poke back:
To poke a user back, you would issue an HTTP Post to /userid/pokes but you need to get whitelisted by Facebook. Otherwise you will get this response:
使用图形 API,当然使用正确的访问令牌(您需要“read_mailbox”权限”),访问 https ://graph.facebook.com/me/pokes
将图形 API 中的“me”替换为您有权访问的 Facebook UID。
Using the graph API, using the right access token of course (you need the "read_mailbox" permission"), access https://graph.facebook.com/me/pokes
Replace "me" in the graph API for a Facebook UID you have permission to access to.
以下是关于如何获取通知的 Facebook REST 文档,应该包括波克斯。
Here are the Facebook REST docs for how to get notifications, which should include Pokes.