开发者

How to check if I can send a private message to a user or not using the Facebook API or not?

How to check if I can send a private message to a Facebook user or not using the Facebook API?

The receiver may not necessarily be my friend. Also he hasn't given any rights to my Facebook application.

Edit: I am using Send dialog for sending private messages to private users but it shows error if the person has disabled to receive private 开发者_Python百科messages.


As I know the FB private messaging has been removed from the public api, I mean that usually apps can't send a private message to FB users, but also as I know you can cooperate with FB to get a special permission for your app, for example in Rockmelt browser you can send private messages, that measn that there is a way to do that, but FB controls that way.


Could you elaborate more on the sender? Do you require the sender's consent?

Please check if the Send Dialog is what you are looking for https://developers.facebook.com/docs/reference/dialogs/send/

AFAIK this is the only way to send private message to an individual. But it requires the user's consent.

You can read more at this similar post: http://facebook.stackoverflow.com/questions/2943297/how-send-message-facebook-friend-through-graph-api-using-accessstoken

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜