Skip to content

Instantly share code, notes, and snippets.

@naltatis
Created May 9, 2011 09:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save naltatis/962266 to your computer and use it in GitHub Desktop.
Save naltatis/962266 to your computer and use it in GitHub Desktop.
connecting to Facebook via node-xmpp
var client = new xmpp.Client({
jid: '-123456@chat.facebook.com', // where 123456 is the users facebook id
api_key: apiKey, // api key of your facebook app
secret_key: secretKey, // secret key of your facebook app
session_key: sessionKey // users current session key
});
// you can find more details here http://developers.facebook.com/docs/chat/
@alFReD-NSH
Copy link

Host should be specified or it doesn't work: https://gist.github.com/1255786

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment