Skip to content
New issue

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

Access-Token | The access_token provided is invalid. #222

Open
dahormez opened this issue Sep 20, 2016 · 5 comments
Open

Access-Token | The access_token provided is invalid. #222

dahormez opened this issue Sep 20, 2016 · 5 comments

Comments

@dahormez
Copy link

Session saved Access-token, getUser works all other functions not.
Please help ;-)

@cbenjamin
Copy link

Having this exact same problem... heard any updates?

@robertrimke
Copy link

robertrimke commented Oct 18, 2016

Also the same issue... any help???
EDIT: This Works: 484c974

@subasah
Copy link

subasah commented Nov 24, 2016

Experiencing the same problem. Is there any solution.. or update??

@marko85to
Copy link

Same Issue. I tried to apply the update 484c974 mentioned above but it doesn't seem to solve anything. Any solution?

@tsukasa1989
Copy link

The issue is that in __construct the setApiKey should be setAccessToken. Should be like this:

if (is_array($config)) {
        // if you want to access user data
        $this->setApiKey($config['apiKey']);
        $this->setApiSecret($config['apiSecret']);
        $this->setApiCallback($config['apiCallback']);
    } elseif (is_string($config)) {
        // if you only want to access public data
        $this->setAccessToken($config); // Change here
    } else {
        throw new InstagramException('Error: __construct() - Configuration data is missing.');
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants