ramsey / laravel-oauth2-instagram

A Laravel 5 service provider for league/oauth2-instagram
MIT License
29 stars 9 forks source link

How I can pass the scope in authorization URL #4

Closed dhavalpatel4 closed 6 years ago

dhavalpatel4 commented 6 years ago

Hi Ramsey, I want to pass scope=likes, comments, public_content in authorization URL can you give me some example?

ramsey commented 6 years ago

The first parameter to Instagram::authorize() is an array of options you can pass to configure the authorization URL:

$authUrl = Instagram::authorize([
    'scope' => ['basic', 'likes', 'comments'],
]);

For more information, see here and here.

dhavalpatel4 commented 6 years ago

Thanks, Ben it worked 👍