Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sending private messages through Facebook API [duplicate]

Tags:

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.

like image 502
mixdev Avatar asked Dec 06 '10 05:12

mixdev


People also ask

Is there an API for Facebook Messenger?

The Messenger Profile API allows you to set, update, retrieve, and delete properties from the Page Messenger Profile.


2 Answers

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.

like image 106
Mark Mayo Avatar answered Sep 28 '22 07:09

Mark Mayo


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

like image 22
JiminyCricket Avatar answered Sep 28 '22 05:09

JiminyCricket