1

I am trying to create an application that will basically be a Linux command line messenger app just for Facebook chat. When you connect to facebook chat using the XMPProtocol, you can send instant messages to all of your friends but you can only see the messages from the friends that appear online. If an offline friend sends you a message, you do not see it. I have tested this with various chat programs (like pidgin) that are using XMPP to connect to facebook chat.

There is an iPhone app called "Messenger" that allows you to send and receive instant messages even when your friends appear to be offline. How is this possible? Do you have to use some other protocol? I tried making a research about this, and while there were many references about XMPP basically having this limit, there was no reference about how you solve this problem. I'd appreciate any clue regarding the direction I should look (may that be just the name of a protocol, an open source project that has this feature etc).

Lim Arctan
  • 45
  • 3
  • Note that an XMPP server _can_ cache messages sent to offline users and forward them when the user logs in. Facebook may not do this, but it's not an inherent limitation of the protocol. – James Mar 27 '12 at 14:02
  • It does do it. The messages that I send to offline users are delivered instantly but their responses do not appear to me (because they are offline). – Lim Arctan Mar 27 '12 at 14:04

1 Answers1

0

chat and inbox are two faces of the same Facebook backend ...so i mean you can read message sent by your Facebook friends by Graph Api http GET as this ... https://graph.facebook.com/me/inbox?access_token=xxxxxx

Luca Rocchi
  • 6,272
  • 1
  • 23
  • 23