Closed jamlfy closed 12 years ago
Facebook uses special way of authenticating. It is not supported by XMPP library behind simple-xmpp.
I managed to get this working. You can't use username/password but you can use the accessToken method. What I did was:
console.log
the returned access_tokenhost
to chat.facebook.com
, and access_token
to your user's access tokenIt works for me, no problems.
Wow.
Cool. Thanks for sharing your experience.
On Fri, Aug 3, 2012 at 5:24 AM, Ruben Tan Long Zheng < reply@reply.github.com
wrote:
I managed to get this working. You can't use username/password but you can use the accessToken method. What I did was:
- Create a simple app using everyauth
- Make sure "xmpp_login" scope is included in the oauth scope for facebook
console.log
the returned access_token- Implement the simple-xmpp example in a different app
- Provide your JID (google for how to find it), your app_id (remember to create an app in facebook first), set
host
tochat.facebook.com
, andaccess_token
to your user's access tokenIt works for me, no problems.
Reply to this email directly or view it on GitHub: https://github.com/arunoda/node-simple-xmpp/issues/4#issuecomment-7471785
Arunoda Susiripala
@arunoda http://twitter.com/arunoda http://gplus.to/arunodahttps://github.com/arunoda http://www.linkedin.com/in/arunoda
+1
Very helpful, @soggie -- thanks!
We should close this case now, because I can confirm it works.
yep great :)
I'm testing the module, but when I try to connect to facebook chat.
The server responds
And I do not understand the generated authentication. If there are many applications that have no api