Answer the question
In order to leave comments, you need to log in
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',
],
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question