问题
Facebook will be deprecating their chat API that currently allows sending chat messages via XMPP.
My company is currently working on a product that may take advantage of the chat API and I would like to know more about the future of this service.
Will the current XMPP-based chat API be replaced with a new version next year? Or is it going to be obsolete?
Any input on this will be appreciated!
回答1:
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.
回答2:
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.
回答3:
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
回答4:
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
回答5:
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.
回答6:
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!
回答7:
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:
- bitlbee-facebook https://github.com/bitlbee/bitlbee-facebook
- purple-facebook https://github.com/dequis/bitlbee-facebook
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.
回答8:
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.
来源:https://stackoverflow.com/questions/23988889/replacement-for-facebook-chat-api-in-v2-0