lib/fbgraph/authorization.rb in fbgraph-0.1.6.1 vs lib/fbgraph/authorization.rb in fbgraph-0.1.6.3
- old
+ new
@@ -31,24 +31,7 @@
:sessions => keys.flatten.join(',')
})
JSON.parse(tokens).map { |hash| hash['access_token'] if hash}
end
- def upgrade_session(key)
- token = upgrade_session_keys(key).first
- @client.access_token = token['access_token']
- token
- end
-
-
- def exchange_sessions(*keys)
- tokens = @client.oauth_client.request(:get, '/oauth/exchange_sessions', {
- :client_id => @client.client_id,
- :client_secret => @client.secret_id,
- :type => 'client_cred',
- :sessions => keys.flatten.join(',')
- })
- JSON.parse(tokens)
- end
-
end
end