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('<', '<')}\n" end run Sinatra::Application
Version data entries
16 entries across 16 versions & 2 rubygems