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

In regards to the COVID-19 situation

Your support team is currently doing their best to offer the best support possible despite the current COVID-19 situation. However during these exceptional circumstances, please note that you should expect a response time of 2-3 business days, until further notice.Rest assured that we will still do our best to handle your requests as soon as possible! Everyone stay safe and healthy! 😷

Social login – Facebook

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

    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

    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

    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
    • 1673 Posts

    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

    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 ❤️