D
D
Dmitry Baibukhtin2015-02-01 20:18:04
Yii
Dmitry Baibukhtin, 2015-02-01 20:18:04

How to request permissions for an application in Yii2 AuthClient extension?

Good evening. I connected the Yii2 AuthClient extension, configured everything, it works great, but when I switched to using the Facebook API, I got the error "The application does not have permissions for this action, please request them during authorization." This puzzled me, where in this extension can I specify the necessary rights?
As far as I understand, in the config, set the authUrl parameter for the desired service. For example for Facebook:

'facebook' => [
     'authUrl' => 'https://www.facebook.com/dialog/oauth?display=popup&scope=manage_notifications',
     'class' => 'yii\authclient\clients\Facebook',
     'clientId' => '123456789',
     'clientSecret' => '123456789123456798',
     'title' => 'Facebook',
     ],

But the rights at authorization all the same are not requested. Perhaps authUrl did not specify correctly, or maybe this method is not correct at all. How are you doing?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Makarov, 2015-02-17
@PiloTeZ

Look at the scope parameter.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question