Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chat message from Graph API?

Are there any PHP examples of how to send Facebook chat messages to friends of the user, through Graph API? I want users to be able to invite their friends to my site through sending them invite link, but this link should not be public.

I already have Graph API set up on my website, and I would like to send a chat message (i.e. an invitation link) using that authenticated user session. Is that possible?

If not, is there an alternative way to accomplish the same thing?

like image 393
JoHa Avatar asked Feb 24 '26 10:02

JoHa


1 Answers

There is no way to send chat messages through the Graph API. Chat messages use the XMPP protocol. See the documentation for details.

There does not seem to be any way at this time to send a private message through the Graph API; messaging is currently read-only, and posts to another user's wall are visible to anyone who can see the victim's target user's wall.

like image 170
Anomie Avatar answered Feb 26 '26 01:02

Anomie



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!