开发者

Sending private messages through Facebook API [duplicate]

开发者 https://www.devze.com 2023-01-29 13:44 出处:网络
This question already has answers here: 开发者_如何学Python Closed 10 years ago. Possible Duplicate:
This question already has answers here: 开发者_如何学Python Closed 10 years ago.

Possible Duplicate:

Facebook Api - send private messages to friends

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.

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.


Reading messages is possible with the new messaging framework, available to registered developers only.

Have a read of this page - that's about all that I'm aware of currently:

http://developers.facebook.com/docs/reference/api/message

Sending, however, is not.


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.

From the docs linked above:

*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.*


You can do it using CHAT API. But it is limited plain text messages.

0

精彩评论

暂无评论...
验证码 换一张
取 消