mirror of
https://github.com/simi/omniauth-facebook.git
synced 2022-11-09 12:32:45 -05:00
11 lines
261 B
Ruby
11 lines
261 B
Ruby
require 'bundler/setup'
|
|
require 'omniauth-facebook'
|
|
require './app.rb'
|
|
|
|
use Rack::Session::Cookie, :secret => 'abc123'
|
|
|
|
use OmniAuth::Builder do
|
|
provider :facebook, ENV['APP_ID'], ENV['APP_SECRET'], :scope => 'email,read_stream'
|
|
end
|
|
|
|
run Sinatra::Application
|