msigley / WP-Instagram-API

Instagram Basic Display API plugin for Wordpress
GNU General Public License v2.0
21 stars 10 forks source link

Instagram Wordpress API: Bad or missing user access token. #4

Closed adambichler closed 3 years ago

adambichler commented 3 years ago

I'm getting this error: "Instagram Wordpress API: Bad or missing user access token. Please reauthenicate with Instagram to pull and display content from Instagram." If I click the link right there, I'm redirected to instagram where I have to allow access. Then I'm back in WP, but nothing changed.

I have set the "https://yourdomain.com/wp-admin/" as a valid OAuth Redirect URI, but the error is still there. Not sure what I am missing.

In my WP Config fiel I set the following two lines: define('INSTAGRAM_CLIENT_ID', ''); define('INSTAGRAM_CLIENT_SECRET', '');

Which of the IDs should I use? "App ID" (at top of developer page) or "Instagram-App-ID" (found under Instagram Basic Display)?

Any ideas? Thanks!

msigley commented 3 years ago

The client ID and client secret must be filled in those defines from your facebook developer account: https://developers.facebook.com/docs/instagram-basic-display-api/getting-started

adambichler commented 3 years ago

Hey @msigley, Sure, I set them like this, right: define('INSTAGRAM_CLIENT_ID', '14445690XXXXX138'); define('INSTAGRAM_CLIENT_SECRET','IGQVJWbkNONnhkUlXXXXXXjRYaF9kRDc2RGdLNDlTYnViRWx6TAHVSDHdvsvshYTlYxTUtXZATczVmXXXXXXXjMzUy1BNERhbEpNcUF6aDVBSnJXXXXX0hMeHlMZAVJ5clo2VEdIMgZDZD'); That's what I did, but it didn't work. Thanks for your reply