How to send private message/access facebook chat in Koala ,Ruby on Rails

1.6k Views Asked by At

how to use Koala gem to access user chat and send message to the another user? Is that Koala has provide this function to use? i did check the documentation about koala ,but seems like dont have it,or it do have any alternative way to do it?

Any suggestion to do my stuff?

2

There are 2 best solutions below

0
On

I guess it's not possible. Although the Facebook API documentation does not say that it cannot be done. But I don't see a way to get this done.

Maybe you can try this.

0
On

For posterity sake, this is possible via the Facebook API.

POST v2.10/{access_token}/messages

recipient: {
    id: {recipient_id}
}
message: {
    text: "Hello World"
}