Adrien Cerdan
Adrien Cerdan

Reputation: 1015

Get list of friends above the messenger in Facebook with Graph Api

I stuck on finding a way to get the list of friends above the messenger :

enter image description here

This list contains the "most used friends" in facebook messenger...

Facebook give us a way to get these information ?

Thank you

Upvotes: 0

Views: 638

Answers (2)

Visgean Skeloru
Visgean Skeloru

Reputation: 2263

Facebook chat does not use standard Graph Api, it uses XMPP protocol instead. Here you can find facebook documentation. As far as I know you can get list of active friends in XMPP, you can get more info about xmpp roster here. The best way to implement this is to use some open source XMPP libraries. There is official list so use one of those.

You should also note that "Your Facebook Chat integration should only be used for sessions that are expected to be long-lived. Clients should not rapidly churn on and off." The chat API is meant to be used for chat. With that in mind consider if you are really going to use that api for a long term session.

Upvotes: 1

Igy
Igy

Reputation: 43816

There is currently no API which returns the list of friends visible at the top of the chat window on Facebook.com

Upvotes: 0

Related Questions