Support only during business hours : Monday to friday, from 8:30 am – 5:30 pm CEST

Due to the decrease in our staff due to vacations, our response time may be longer.

Be sure we're doing our best to manage your topic as soon as possible.

Social login – Facebook

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • alex
    Participant
    • 81 Topics
    • 259 Posts
    @abourne

    Had FB login issue, as attached.

    This function resolved it for your communities interest:

    add_filter( 'wsl_hook_alter_provider_scope', 'virtus_wsl_hook_alter_provider_scope', 10, 2 );
    
    function virtus_wsl_hook_alter_provider_scope( $provider_scope, $provider ) {
    if ( $provider == 'Facebook' ) {
    $provider_scope_new = str_replace( ', user_friends', '', $provider_scope );
    return $provider_scope_new;
    }
    return $provider_scope;
    }

    By the way, Social login seems kind of pointless as it only pulls the basic name, email. Can it also be made to pull profile image? If so, how?

    alex
    Participant
    • 81 Topics
    • 259 Posts
    @abourne

    In fact, it pulls data from facebook fields.

    After log in, none of the profile fields are populated.

    Despite the screen prompting that it will (attached).

    Also, can the screen of ‘link account’ and ‘create new account’ be removed (attached)? It seems rather pointless.

    alex
    Participant
    • 81 Topics
    • 259 Posts
    @abourne

    WP social login auto logs the user in and skips all the important fields, like choosing a role, location etc… plus redirects thereon to home page, which cannot be changed with their settings.

    Am disabling it. Unless it can re-land the user onto registration forms to complete the ‘remaining’ fields not entered by Facebook?

    FYI, if it may help anyone else, I came across this solution, which worked for many according to comments…

     
    add_filter( 'bp_core_fetch_avatar', 'revert_to_default_wp_avatar', 80, 3 );//late load
    function revert_to_default_wp_avatar( $img, $params, $item_id ){
    	//we are concerned only with users
    	if( $params['object']!='user' )
    		return $img;
    
    	//check if user has uploaded an avatar
    	//if not then revert back to wordpress core get_avatar method
    	//remove the filter first, or else it will go in infinite loop
    	remove_filter( 'bp_core_fetch_avatar', 'revert_to_default_wp_avatar', 80, 3 );
    
    	if( !emi_user_has_avatar( $item_id ) ){
    		$width = $params['width'];
    		// Set image width
    		if ( false !== $width ) {
    			$img_width = $width;
    		} elseif ( 'thumb' == $width ) {
    			$img_width = bp_core_avatar_thumb_width();
    		} else {
    			$img_width = bp_core_avatar_full_width();
    		}
    		$img = get_avatar( $item_id, $img_width );
    	}
    
    	//add the filter back again
    	add_filter( 'bp_core_fetch_avatar', 'revert_to_default_wp_avatar', 80, 3 );
    	return $img;
    }
    
    /**
    * Check if the given user has an uploaded avatar
    * @return boolean
    */
    function emi_user_has_avatar( $user_id=false ) {
    	if( !$user_id ){
    	$user_id = bp_loggedin_user_id();
    	}
    	
    	if ( bp_core_fetch_avatar( array( 'item_id' => $user_id, 'no_grav' => true,'html'=> false, 'type' => 'full' ) ) != bp_core_avatar_default( 'local' ) )
    		return true;
    	return false;
    }
    

    http://webdeveloperswall.com/buddypress/wordpress-social-login-facebook-profile-picture

    Themosaurus
    Keymaster
    Themosaurus Support
    • 1 Topics
    • 1675 Posts
    @themosaurus

    Hi @abourne,

    Thank you for your feedback. However, please note that your request is related to the improvement of a third party plugin, not our theme. As theme authors, feature development for third party plugins isn’t part of the support we will provide.

    To go further, we invite you to inform the plugin authors of your request on their support forums:
    https://wordpress.org/support/plugin/wordpress-social-login

    We remain available to discuss requests related with the use of your theme.

    Regards,

    alex
    Participant
    • 81 Topics
    • 259 Posts
    @abourne

    Sure. Will lodge topic.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

Troubleshooting Demo Imports

You're trying to setup your theme but you're experiencing errors when importing the demo content? Or you've just followed the setup guide but your website doesn't look exactly like our demo? These are common issues for which you can find easy and quick fixes.

Happy With our Support So Far?

Feel free to review our theme on Themeforest! It helps us making our products more known to new potential customers, which allow us more time to improve the quality and develop new features. #SharingIsCaring ❤️

Discover MatchPress

Skip • Like • Super-Like

Add powerful matching features like Member likes, skips, super likes, conditional private messaging and much more.

Setup Your Cera or Gwangi powered Community Website and Turn it into an iOS and Android App

15% discount for Cera users

To unleash the full power of your Cera or Gwangi theme, we have partnered with the Zipline team. Your community website can now be fully setup and turned into your very own custom app for iOS and Android.

Whether you've newly acquired the theme or already got your site up and running, Zipline got you covered. And we got you an incredible discount.

Holiday, Weather & Festive effects
to pimp your WordPress Site