Replacement for Facebook Chat API in v2.0? [closed]

守給你的承諾、 提交于 2019-11-30 01:20:27

The Facebook XMPP Chat API has been deprecated in v2.0 and above meaning it won't be available after April 30th 2015.

Facebook have not announced any replacement for this API, so I'd recommend not building a product which requires this functionality.

The closest thing that I've found so far is this endpoint:

GET /v2.2/me/inbox

(https://developers.facebook.com/docs/graph-api/reference/v2.2/user/inbox)

This allows you to read all the messages. You will need a read_mailbox permission. But you can't publish, update nor delete.

While it's not a fully fledged API or anything, there's a libpurple (pidgin) plugin that I've confirmed works with the new Facebook chat restrictions: https://github.com/jgeboski/purple-facebook

Messanger API is here (can't post a comment yet) info: https://developers.facebook.com/blog/post/2015/03/25/introducing-messenger-platform-and-businesses-on-messenger/
api: https://developers.facebook.com/docs/messenger

however I didn't find anything that would be useful as a replacement for chat API

A couple days ago, Facebook just announced their new Messenger Platform

https://developers.facebook.com/docs/messenger-platform.

As for now, it can only be used with Facebook Page and use Webhooks as way to communicate with our app. It also able to send message with recipient's id or phone number if the recipient authorized it.

This is not about XMPP, but my problem was to use the chat without accessing the browser and this node package solved it. It tricks facebook into believing that you are getting and posting from their site. Pretty cool!

Since a few months, there's a pretty complete reverse of the MQTT protocol used by the messenger app implemented with two Instant Messaging libraries:

Both share the same codebase and were essentially implemented by the same person, so you could either reuse the codebase or use bitlbee-facebook and do your thing on top of IRC.

I guess Facebook will never give access to xmpp after April 30th 2015 because they have blocked friends access from there sdk and through xmpp you can find roasters to access friends.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!