Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/kissrobber/xmpp4r_facebook
- Owner: kissrobber
- Created: 2011-07-13T09:25:39.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-10-12T19:22:02.000Z (about 12 years ago)
- Last Synced: 2024-07-17T12:56:05.476Z (4 months ago)
- Language: Ruby
- Homepage:
- Size: 181 KB
- Stars: 31
- Watchers: 6
- Forks: 15
- Open Issues: 6
-
Metadata Files:
- Readme: README
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 = subjectclient = Jabber::Client.new Jabber::JID.new(id)
client.connect
client.auth_sasl(Jabber::SASL::XFacebookPlatform.new(client, '', '', ''), nil)
client.send message
client.closeEnsure 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