Title: Error when logging with Fb
Last modified: May 25, 2018

---

# Error when logging with Fb

 *  [sonam08](https://wordpress.org/support/users/sonam08/)
 * (@sonam08)
 * [8 years ago](https://wordpress.org/support/topic/error-when-logging-with-fb/)
 * I am getting this error while login:
    Invalid Scopes: user_friends. This message
   is only shown to developers. Users of your app will ignore these permissions 
   if present. Please read the documentation for valid permissions at [https://developers.facebook.com/docs/f…ermissions](https://developers.facebook.com/docs/f…ermissions)

Viewing 15 replies - 1 through 15 (of 24 total)

1 [2](https://wordpress.org/support/topic/error-when-logging-with-fb/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/error-when-logging-with-fb/page/2/?output_format=md)

 *  [grahand](https://wordpress.org/support/users/grahand/)
 * (@grahand)
 * [8 years ago](https://wordpress.org/support/topic/error-when-logging-with-fb/#post-10328172)
 * I get the exact same message.
    Then I hit OK then it says Oops we ran into an
   issue.
 *  [sovabarmak](https://wordpress.org/support/users/sovabarmak/)
 * (@sovabarmak)
 * [8 years ago](https://wordpress.org/support/topic/error-when-logging-with-fb/#post-10344337)
 * any news? same error too…
 *  [sovabarmak](https://wordpress.org/support/users/sovabarmak/)
 * (@sovabarmak)
 * [8 years ago](https://wordpress.org/support/topic/error-when-logging-with-fb/#post-10344560)
 * just need to login from another account where you created facebook app and all
   would be good
 *  Plugin Author [Miled](https://wordpress.org/support/users/miled/)
 * (@miled)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/error-when-logging-with-fb/#post-10347261)
 * Facebook, of course.
 * A possible fix would be to change requested permissions using a filter:
 *     ```
       function wsl_change_default_permissons( $provider_scope, $provider )
       {
       	if( 'facebook' == strtolower( $provider ) )
       	{
       		$provider_scope = 'email, public_profile';
       	}
   
       	return $provider_scope;
       }
   
       add_filter( 'wsl_hook_alter_provider_scope', 'wsl_change_default_permissons', 10, 2 );
       ```
   
 * Let me know if this works for you.
 *  [discere](https://wordpress.org/support/users/thistlebean/)
 * (@thistlebean)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/error-when-logging-with-fb/#post-10355088)
 * Could you give instructions on how to add this filter?
 *  [investorhk](https://wordpress.org/support/users/investorhk/)
 * (@investorhk)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/error-when-logging-with-fb/#post-10380833)
 * Hi,
 * It don’t work, do you have any idea about this?
 *  [arnoutvandervorst](https://wordpress.org/support/users/arnoutvandervorst/)
 * (@arnoutvandervorst)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/error-when-logging-with-fb/#post-10391540)
 * Works perfectly, just add the function + filter in the wp-social-login.php just
   after the other filters…
 *  [Optimiza](https://wordpress.org/support/users/malditoweekend/)
 * (@malditoweekend)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/error-when-logging-with-fb/#post-10463236)
 * [@miled](https://wordpress.org/support/users/miled/) solution worked for me too,
   just like [@arnoutvandervorst](https://wordpress.org/support/users/arnoutvandervorst/)
   wrote, you just need to go to your plugin folder at:
 * /wp-content/plugins/wordpress-social-login/
 * In there you will find a file called:
 * wp-social-login.php
 * Edit the file and the end of the file include this code:
 *     ```
       function wsl_change_default_permissons( $provider_scope, $provider )
       {
       	if( 'facebook' == strtolower( $provider ) )
       	{
       		$provider_scope = 'email, public_profile';
       	}
   
       	return $provider_scope;
       }
   
       add_filter( 'wsl_hook_alter_provider_scope', 'wsl_change_default_permissons', 10, 2 );
       ```
   
 * One more thing, in my case, I had to change also inside the Facebook App the “
   Valid OAuth redirect URIs”:
 * FROM:
    `http://mywebsite.com/wp-content/plugins/wordpress-social-login/hybridauth/?
   hauth.done=WordPress`
 * TO:
    `http://mywebsite.com/wp-content/plugins/wordpress-social-login/hybridauth/?
   hauth_done=Facebook`
    -  This reply was modified 7 years, 11 months ago by [Optimiza](https://wordpress.org/support/users/malditoweekend/).
      Reason: semantics
 *  [nox](https://wordpress.org/support/users/noxdraz/)
 * (@noxdraz)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/error-when-logging-with-fb/#post-10477002)
 * Hey Miled! I am getting the same error. Facebook is straight out rejecting it.
 *  [caniggiaroby](https://wordpress.org/support/users/caniggiaroby/)
 * (@caniggiaroby)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/error-when-logging-with-fb/#post-10509311)
 * yes, with that code wp social login working, it’s very good.
 * but i’ve two questions:
 * 1- when i update this plugin, i must rewrite the original file? why the development
   not insert this in wp social login.php?
 * 2- we are italian and when our user connect with facebook, read only english 
   popup, i can show the italian language for facebook connect?
 * escuse my bad english, do you know my problem?
    -  This reply was modified 7 years, 10 months ago by [caniggiaroby](https://wordpress.org/support/users/caniggiaroby/).
 *  [Optimiza](https://wordpress.org/support/users/malditoweekend/)
 * (@malditoweekend)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/error-when-logging-with-fb/#post-10509664)
 * Hi [@caniggiaroby](https://wordpress.org/support/users/caniggiaroby/), I’m not
   the developer of this plugin but I will try to answer your questions since I 
   don’t think the developer of this plugin will do.
 * **1- when i update this plugin, i must rewrite the original file?
    Yes
 * **2. why the development not insert this in wp social login.php?**
    The last 
   update was 1 year ago, you better search for a more up to date plugin that will
   do the same.
 * **3- we are italian and when our user connect with facebook, read only english
   popup, i can show the italian language for facebook connect?**
    I don’t know 
   this one, I think it will have to do on the language of your Facebook App?
 *  [Spencer Hill](https://wordpress.org/support/users/s3w47m88/)
 * (@s3w47m88)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/error-when-logging-with-fb/#post-10509944)
 * 1. Someone can submit this as a [Pull Request on the GitHub repository](https://github.com/miled/wordpress-social-login/issues/265)
   and it will be included in the next release.
 *  [Optimiza](https://wordpress.org/support/users/malditoweekend/)
 * (@malditoweekend)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/error-when-logging-with-fb/#post-10509965)
 * Great idea, we will do it right now.
 *  [caniggiaroby](https://wordpress.org/support/users/caniggiaroby/)
 * (@caniggiaroby)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/error-when-logging-with-fb/#post-10509986)
 * thanks for all 🙂
 *  [eLeXeM](https://wordpress.org/support/users/elexem/)
 * (@elexem)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/error-when-logging-with-fb/#post-10572130)
 * Hello, all;
    I tried to add this via a site-specific plug-in, but sadly to no
   avail. :/
 * Is there perhaps any news as to when the adjusted behaviour will be shipped out
   in an update?
 * I don’t assume just registering a new app might get me past the problem?
    Thank
   you for wahtever feedback you may be able to provide. Cheers – LX

Viewing 15 replies - 1 through 15 (of 24 total)

1 [2](https://wordpress.org/support/topic/error-when-logging-with-fb/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/error-when-logging-with-fb/page/2/?output_format=md)

The topic ‘Error when logging with Fb’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-social-login_a1a2bc.svg)
 * [WordPress Social Login](https://wordpress.org/plugins/wordpress-social-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-social-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-social-login/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-social-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-social-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-social-login/reviews/)

 * 24 replies
 * 19 participants
 * Last reply from: [ticciazteca](https://wordpress.org/support/users/ticciazteca/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/error-when-logging-with-fb/page/2/#post-11659148)
 * Status: not resolved