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 provided is invalid #257

Open
hassan-khalil opened this issue Oct 12, 2018 · 0 comments
Open

access_token provided is invalid #257

hassan-khalil opened this issue Oct 12, 2018 · 0 comments

Comments

@hassan-khalil
Copy link

Each time i login and try to get user media or serch user it gives error .

 +"meta": {#176 ▼
    +"code": 400
    +"error_type": "OAuthAccessTokenException"
    +"error_message": "The access_token provided is invalid."
  }

on authenticating i am receiving access token. this is my code, i think access token which i receive from instagram is not working.

$instagram = new Instagram(config('instagram'));
$instagram->setAccessToken(Session::get('token'));
dd($instagram->getUserMedia(Session::get('id'), 10));
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

1 participant