Support » Plugin: WordPress Social Login » Error when logging with Fb

Viewing 15 replies - 1 through 15 (of 24 total)
  • I get the exact same message.
    Then I hit OK then it says Oops we ran into an issue.

    any news? same error too…

    just need to login from another account where you created facebook app and all would be good

    Plugin Author Miled

    (@miled)

    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.

    Could you give instructions on how to add this filter?

    Hi,

    It don’t work, do you have any idea about this?

    Works perfectly, just add the function + filter in the wp-social-login.php just after the other filters…

    Optimiza

    (@malditoweekend)

    @miled solution worked for me too, just like @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 2 years, 7 months ago by Optimiza. Reason: semantics

    Hey Miled! I am getting the same error. Facebook is straight out rejecting it.

    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 2 years, 7 months ago by caniggiaroby.
    Optimiza

    (@malditoweekend)

    Hi @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?

    1. Someone can submit this as a Pull Request on the GitHub repository and it will be included in the next release.

    Optimiza

    (@malditoweekend)

    Great idea, we will do it right now.

    thanks for all 🙂

    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)
  • The topic ‘Error when logging with Fb’ is closed to new replies.