简体   繁体   English

如何在Koala,Ruby on Rails中发送私人消息/访问Facebook聊天

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

how to use Koala gem to access user chat and send message to the another user? 如何使用Koala gem访问用户聊天并向另一个用户发送消息? Is that Koala has provide this function to use? Koala是否提供此功能? 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? 有什么建议做我的东西?

I guess it's not possible. 我想这不可能。 Although the Facebook API documentation does not say that it cannot be done. 虽然Facebook API文档没有说它无法完成。 But I don't see a way to get this done. 但我没有办法完成这项工作。

Maybe you can try this . 也许你可以试试这个

For posterity sake, this is possible via the Facebook API. 为了后人,这可以通过Facebook API实现。

POST v2.10/{access_token}/messages

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM