Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kissrobber/xmpp4r_facebook

facebook chat(xmpp). X-FACEBOOK-PLATFORM SASL for ruby xmpp4r
https://github.com/kissrobber/xmpp4r_facebook

Last synced: 3 months ago
JSON representation

facebook chat(xmpp). X-FACEBOOK-PLATFORM SASL for ruby xmpp4r

Awesome Lists containing this project

README

        

Expansion XMPP4R to authenticate with Facebook Connect in Ruby

======================================
Install:
======================================
gem install xmpp4r_facebook

======================================
Sample code:
======================================
require 'xmpp4r_facebook'

id = '[email protected]'
to = '[email protected]'
body = "hello, Im not spam!"
subject = 'message from ruby'
message = Jabber::Message.new to, body
message.subject = subject

client = Jabber::Client.new Jabber::JID.new(id)
client.connect
client.auth_sasl(Jabber::SASL::XFacebookPlatform.new(client, '', '', ''), nil)
client.send message
client.close

Ensure your access token has `xmpp_login` permission. Check at https://developers.facebook.com/tools/debug

(I want to work in Silicon Valley as a software engineer.)
Copyright (c) 2010 kissrobber, released under the GPL license