Skip to content
An example application using OmniAuth for Facebook and Twitter authentication
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Sinatra OmniAuth Demo: Using Facebook and Twitter

To Run:
1. Set your facebook and twitter app settings in config.yml
2. bundle install
3. run app: unicorn -p 3000
4. browse

a) Twitter doesn't allow app domain as localhost, so set as your app domain.
b) In application settings set callbacks to /auth/:provider/callback # :provider = facebook or twitter
c) I like to run on port 3000 you can run any as you wish just set it everywhere.
d) OmniAuth allows other authentication providers here's a list:
e) If you have rack 1.4.0 installed and app isn't running try downgrading rack to 1.3.6

follow me on twitter:

Something went wrong with that request. Please try again.