We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I was trying to use the default app_access_token in the Koala::Facebook::API and saw that it is not possible.
Koala::Facebook::API
Then I looked at the code:
koala/lib/koala/api.rb
Line 95 in 3c7037e
I saw that args["access_token"] is only assigned by the @access_token. The @app_access_token will never be assigned because it does not start.
args["access_token"]
@access_token
@app_access_token
So I think it should look like this:
args["access_token"] ||= Koala.config.access_token || Koala.config.app_access_token if @access_token || Koala.config.app_access_token
Thus, if @access_token is not defined at initialize(), it will use Koala.config.access_token or Koala.config.app_access_token.
initialize()
Koala.config.access_token
Koala.config.app_access_token
What do you think?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
I was trying to use the default app_access_token in the
Koala::Facebook::API
and saw that it is not possible.Then I looked at the code:
koala/lib/koala/api.rb
Line 95 in 3c7037e
I saw that
args["access_token"]
is only assigned by the@access_token
. The@app_access_token
will never be assigned because it does not start.So I think it should look like this:
args["access_token"] ||= Koala.config.access_token || Koala.config.app_access_token if @access_token || Koala.config.app_access_token
Thus, if
@access_token
is not defined atinitialize()
, it will useKoala.config.access_token
orKoala.config.app_access_token
.What do you think?
The text was updated successfully, but these errors were encountered: