Closed
Description
I was successfully using 0.0.3 to access facebook and I'm trying to upgrade to 0.7.1. I've followed the example quite closely and read through the issues but always run into the error:
An active access token must be used to query information about the current user.
I'm not sure if that means I'm somehow not using an access token, or that my access token is not "active".
Here is the code I am using:
# create client
client = OAuth2::Client.new(APP_ID, APP_SECRET, :site => BASE_URL, :token_url => '/oauth/access_token')
# get auth url
client.auth_code.authorize_url(:redirect_uri => CALLBACK_URI)
# create token
token = client.auth_code.get_token(params[:code], :redirect_uri => CALLBACK_URI)
# attempt get
token.get('/me') # => "An active access token must be used to query information about the current user."
Is there an obvious mistake I am making here?
Metadata
Metadata
Assignees
Labels
No labels