Skip to content

Instantly share code, notes, and snippets.

View alFReD-NSH's full-sized avatar

Farid Nouri Neshat alFReD-NSH

View GitHub Profile
@alFReD-NSH
alFReD-NSH / facebook-xmpp.js
Created October 1, 2011 08:55 — forked from naltatis/facebook-xmpp.js
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
host: 'chat.facebook.com'
});
// you can find more details here http://developers.facebook.com/docs/chat/