Sha256: 37fd5f92ced5878a7c4c9f593c7bf82bd39a3bc566f9fdd919689e834f688152

Contents?: true

Size: 310 Bytes

Versions: 16

Compression:

Stored size: 310 Bytes

Contents

require 'sinatra'
require 'rest-core'

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

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

run Sinatra::Application

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
rest-more-1.0.2 example/sinatra/config.ru
rest-more-1.0.1 example/sinatra/config.ru
rest-more-1.0.0 example/sinatra/config.ru
rest-more-0.8.0 example/sinatra/config.ru
rest-more-0.7.2.1 example/sinatra/config.ru
rest-more-0.7.2 example/sinatra/config.ru
rest-more-0.7.1 example/sinatra/config.ru
rest-more-0.7.0 example/sinatra/config.ru
rest-core-0.4.0 example/sinatra/config.ru
rest-core-0.4.0.pre.2 example/sinatra/config.ru
rest-core-0.4.0.pre.1 example/sinatra/config.ru
rest-core-0.4.0.pre.0 example/sinatra/config.ru
rest-core-0.3.0 example/sinatra/config.ru
rest-core-0.3.0.pre.2 example/sinatra/config.ru
rest-core-0.3.0.pre.1 example/sinatra/config.ru
rest-core-0.3.0.pre.0 example/sinatra/config.ru