Socialite - Facebook user_photos scope

Posted 2 years ago by luddinus

Hi,

I'm trying to login with facebook with some scopes but those scopes are never requested. Here is my code:

// facebook redirect controller
Socialite::driver('facebook')->fields([
   'email',
  // etc.
])->scopes(['user_photos', 'publish_actions']);

The problem I guess, is that the url generated is not adding the scopes params correctly:

// url generated
&scope=email&response_type=code
// desired url params
&scope=email,user_photos&response_type=code

What am I doing wrong? (I already have the user_photos permission reviewed by facebook)

Thx.

Please sign in or create an account to participate in this conversation.