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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With