jsmrtn / craftagram

Grab Instagram content through the Instagram Basic Display API
Other
14 stars 8 forks source link

Invalid Scope #20

Closed kaspar-allenbach closed 4 years ago

kaspar-allenbach commented 4 years ago

Craftagram no longer displayes anything. So I hit the "Authorize Craft" button:

This results in this error:

error_type | "OAuthException" code | 400 error_message | "Invalid scope: []"

What's the problem here?

Craftagram 1.0.5 Craft 3.4.25

jsmrtn commented 4 years ago

The latest version of craftagram is 1.2.4. If you update do you still have the same issues?

kaspar-allenbach commented 4 years ago

Hold on…………… Jup

jsmrtn commented 4 years ago

The issue is likely to do with your setup of instagram.

When you click Authorise Craft, what URL do you get redirected to? Copy the full URL exactly as it is, though feel free to obfuscate the client_id.

kaspar-allenbach commented 4 years ago

https://www.instagram.com/oauth/authorize?client_id=0000000000&redirect_uri=https://mydoamin.com//actions/craftagram/default/auth&scope=user_profile,user_media&response_type=code

jsmrtn commented 4 years ago

Have you added an instagram tester as outlined in steps 7/8?

kaspar-allenbach commented 4 years ago

jup Bildschirmfoto 2020-08-05 um 15 45 15

Bildschirmfoto 2020-08-05 um 15 46 23

jsmrtn commented 4 years ago

Is your app in development mode in Facebook Developers?

kaspar-allenbach commented 4 years ago

No

Bildschirmfoto 2020-08-05 um 15 49 58
jsmrtn commented 4 years ago

Have you enabled instagram_graph_user_profile as outlined in the README?

You can ignore App Review, but please note that if you plan to publish this app, then you will need to turn on the instagram_graph_user_profile option, as this is required for creating a long access token.

kaspar-allenbach commented 4 years ago

No. This is disabled. As I understand your docs. This is not necessary.

jsmrtn commented 4 years ago

If you plan to publish this app, you will need to turn on the instagram_graph_user_profile option

You've made your app live, so you will need this turned on. Either select this option or set your app back to in development.

kaspar-allenbach commented 4 years ago

Does this work without verification? If I enable instagram_user_profile. There is a message which states that verification is disabled for individuals due to covid ??

jsmrtn commented 4 years ago

I'm afraid I can't answer that–if the app is already verified Facebook might not require re-verification.

For what it's worth, we haven't bothered to publish any apps because you can continue to use the integration indefinitely when the app is set to In Development.

kaspar-allenbach commented 4 years ago

Ehhm. What?

So I should leave it in Development mode?

kaspar-allenbach commented 4 years ago

If I leave it to developement mode the error message changes to:

error_message | "Insufficient developer role"

jsmrtn commented 4 years ago

You can leave the app in Development mode, yes. The only reason to make apps live is to gain deeper insights on data, such as the information on users that interact with the app integrations through Pages or Ads. None of this is relevant for the connector to instagram.

That error message has already been covered in #16. It sounds like you should just create a new app and follow the configuration steps again, and leave the app as Development.

velislav7 commented 1 year ago

Have you added an instagram tester as outlined in steps 7/8?

That helped me, thank you