通过 Facebook API 发送私人消息 [英] Sending private messages through Facebook API

查看:44
本文介绍了通过 Facebook API 发送私人消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能的重复:
Facebook Api - 向朋友发送私人消息

我知道官方无法通过 FB API 发送私人消息.SO 中的每个线程也这么说.但是我使用的是 RockMelt 浏览器,当您邀请某人时,会向他们发送一条私人消息.意味着可以通过 API 发送私人消息.更重要的是,Facebook 对此没有意见.

I know that it is not officially possible to send private messages through FB API. Every thread in SO says so too. But I was using RockMelt browser and when you invite somebody, a private message is sent to them. Means it is possible to send private messages through API. More importantly, Facebook is okay with it.

对他们如何使用它有任何猜测吗?这是使用套接字的一些 HTTP POST 技巧吗?顺便说一句,我们将仅在用户启动的操作上使用此功能.

Any guesses on how they are using it? Is it some HTTP POST trick using sockets? BTW, we are going to use this feature only on user initiated actions.

推荐答案

您现在可以 通过 Graph API 查看和回复 Facebook 页面上的消息,但您仍然无法发起对话,只能回复已经给您发送消息的用户.

You can now view and respond to messages on Facebook Pages via the Graph API but you still can't initiate a conversation, only respond to a user that has already messaged you.

来自上面链接的文档:

*您可以通过使用以下参数 [conversation id, message] 向/CONVERSATION_ID/messages 发出 HTTP POST 来回复用户的消息.对话 ID 类似于 t_id.216477638451347.*

*You can reply to a user's message by issuing an HTTP POST to /CONVERSATION_ID/messages with the following parameters [conversation id, message]. A conversation ID look like t_id.216477638451347.*

这篇关于通过 Facebook API 发送私人消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆