File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ class Provider extends AbstractProvider
1010{
1111 public const IDENTIFIER = 'INSTAGRAM ' ;
1212
13- protected $ scopeSeparator = ' ' ;
13+ protected $ scopeSeparator = ', ' ;
1414
1515 /**
1616 * The user fields being requested.
@@ -21,6 +21,18 @@ class Provider extends AbstractProvider
2121
2222 protected $ scopes = ['instagram_business_basic ' ];
2323
24+ protected function buildAuthUrlFromBase ($ url , $ state )
25+ {
26+ $ query = http_build_query (
27+ $ this ->getCodeFields ($ state ),
28+ '' ,
29+ '& ' ,
30+ $ this ->encodingType
31+ );
32+
33+ return $ url . '? ' . urldecode ($ query );
34+ }
35+
2436 protected function getAuthUrl ($ state ): string
2537 {
2638 return $ this ->buildAuthUrlFromBase ('https://api.instagram.com/oauth/authorize ' , $ state );
You can’t perform that action at this time.
0 commit comments