https://github.com/aaronvb/fb_js_connect
Facebook Connect with Javascript SDK and Ruby on Rails
https://github.com/aaronvb/fb_js_connect
Last synced: 2 months ago
JSON representation
Facebook Connect with Javascript SDK and Ruby on Rails
- Host: GitHub
- URL: https://github.com/aaronvb/fb_js_connect
- Owner: aaronvb
- Created: 2010-10-25T13:41:26.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2010-10-25T13:56:45.000Z (over 14 years ago)
- Last Synced: 2025-03-21T22:38:18.840Z (3 months ago)
- Language: Ruby
- Homepage:
- Size: 93.8 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
Awesome Lists containing this project
README
= fb_js_connect
* http://developers.facebook.com/docs/reference/javascript
== Description:
fb_js_connect lets you verify and parse the cookie that Facebook Connect Javascript SDK provides.
I've only tested this in Rails 3.0.1
Very, very incomplete. Use at own risk for now, sorry.== Configuration:
First create config/fb_credentials.yml and provide these two bits if info from your Facebook App.
app_id: YOUR_FACEBOOK_APP_ID
app_secret: YOUR_FACEBOOK_APP_SECRETIn application_controller.rb:
include FbJsConnect
== How to use:
To see if you're currently connected to Facebook:
if current_fb_connect.connected
return true
else
return false
end
To get Facebook UID:fb_uid = current_fb_connect.uid
To get Facebook Access Token:fb_access_token = current_fb_connect.access_token
== To do:* Call backs for Facebook Connection and Disconnection
* Add JS Graph API calls== Help
I'm always open to suggestions and changes, as well as code contributions.