Newbie questions about working with XFacebookPlatform

31 views
Skip to first unread message

Yang Chung

unread,
Apr 23, 2013, 12:46:13 PM4/23/13
to xmpp-b...@googlegroups.com
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 am first working off of romanbsd's pull request (https://github.com/adhearsion/blather/pull/101). 

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!

Ben Langfeld

unread,
Apr 23, 2013, 4:42:01 PM4/23/13
to xmpp-b...@googlegroups.com
Blather::Stream::Client and Blather::Client are not the same thing. You need the latter. Other than that I would suggest you contact the PR authors.

Regards,
Ben Langfeld


--
You received this message because you are subscribed to the Google Groups "Blather" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xmpp-blather...@googlegroups.com.
To post to this group, send email to xmpp-b...@googlegroups.com.
Visit this group at http://groups.google.com/group/xmpp-blather?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages