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

About api url #462

Closed
oscarcalvo opened this issue Nov 3, 2024 · 1 comment
Closed

About api url #462

oscarcalvo opened this issue Nov 3, 2024 · 1 comment

Comments

@oscarcalvo
Copy link

I’m a newbie with the Instagram API, and I’m not sure if this affects only me since my app is still in development mode. However, when working with this package, I always get errors like "Invalid OAuth access token - Cannot parse access token."

The issue was (I don't know why) with the API_URL in src/main/Constants.ts. It was set to https://graph.facebook.com, which didn’t work for me. Instead, I used https://graph.instagram.com, and it worked fine. Just sharing this to help in case someone else encounters the same error.

@TiagoGrosso
Copy link
Owner

Hi!

The URL depends on the type of token you are generating. I believe for you to be using that URL, you are creating a token with the Instagram Login which is a somewhat recent feature

I plan to add support for both. I created #394 (comment) for that purpose

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

2 participants