Sha256: 6a5f0862f67ceb39bc8ec139e134c96258449e65f03e3715bb533382009eee7d

Contents?: true

Size: 396 Bytes

Versions: 1

Compression:

Stored size: 396 Bytes

Contents

# http://www.facebook.com/developers/apps.php
# http://developers.facebook.com/setup/
class FacebookToken < OauthToken
  
  version 2.0
  
  key do |access_token|
    user = JSON.parse(access_token.get("/me"))
    user["id"]
  end
  
  settings "https://graph.facebook.com",
    :authorize_url => "https://graph.facebook.com/oauth/authorize",
    :scope         => "email, offline_access"
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
passport-0.1.1 lib/passport/oauth/tokens/facebook_token.rb