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

Instagram API with Instagram Login #53

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

## Create an Instagram app

First of all you have to create the Instagram app. For that please follow the [official Getting Started guide](https://developers.facebook.com/docs/instagram-basic-display-api/getting-started)
up until point 3 (inclusive).
First of all you have to create the Instagram app. For that please follow the [official Getting Started guide](https://developers.facebook.com/docs/instagram-platform/instagram-api-with-instagram-login/create-a-meta-app-with-instagram)
up until point 6 (inclusive).

One important thing to note is that for all app URIs listed:
Then, it is important to configure all app URIs, as described in Step 9:

- Valid OAuth Redirect URIs
- Deauthorize Callback URL
Expand Down
2 changes: 1 addition & 1 deletion src/EventListener/ModuleListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ private function requestAccessToken(string $clientId): void
'app_id' => $clientId,
'redirect_uri' => $this->router->generate('instagram_auth', [], UrlGeneratorInterface::ABSOLUTE_URL),
'response_type' => 'code',
'scope' => 'user_profile,user_media',
'scope' => 'instagram_business_basic',
];

throw new RedirectResponseException('https://api.instagram.com/oauth/authorize/?'.http_build_query($data));
Expand Down