Sha256: ce69e12c0007845536773344c1643d0760f20dcc819cbdae3f8df40e3aed249c

Contents?: true

Size: 304 Bytes

Versions: 13

Compression:

Stored size: 304 Bytes

Contents

require 'sinatra'
require 'rest-core'

app_id = '123'
secret = 'abc'
config = {:app_id => app_id,
          :secret => secret}

post '/' do
  fb = RC::Facebook.new(config)
  fb.parse_signed_request!(params['signed_request'])
  "#{fb.get('me').inspect.gsub('<', '&lt;')}\n"
end

run Sinatra::Application

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rest-more-3.4.0 example/sinatra/config.ru
rest-more-3.3.4 example/sinatra/config.ru
rest-more-3.3.3 example/sinatra/config.ru
rest-more-3.3.2 example/sinatra/config.ru
rest-more-3.3.1 example/sinatra/config.ru
rest-more-3.3.0 example/sinatra/config.ru
rest-more-3.2.0 example/sinatra/config.ru
rest-more-3.1.0 example/sinatra/config.ru
rest-more-3.0.0 example/sinatra/config.ru
rest-more-2.0.4 example/sinatra/config.ru
rest-more-2.0.3 example/sinatra/config.ru
rest-more-2.0.2 example/sinatra/config.ru
rest-more-2.0.0 example/sinatra/config.ru