Hey guys,
I am pretty new to XMPP world, and for current personal project, I need to send a Facebook chat message to user's friend. I know there are two pull requests that have been pending for a while. I would like to take a stab at it and make it work, but I am already having trouble getting them to work.
I was looking at the spec and trying to create a client, authenticate and send a message, but even creating a client has been a challenge to me.
First, XFacebookPlatform module expects its steam client to have app_id and access_token methods. I look at Stream::Client, and it inherits from Stream class. I look at Stream class and it requires three params when instantiate - client, jid, and password. It requires client? I got here trying to create a client! That's where my confusion started. It also requires password, but Facebook Chat uses app_id and token to authenticate. Another source of confusion.
So, can anyone please help how one would go about creating a client and authenticate? After that, sending a message should be easy.
THANK YOU in advance!