Support » Plugin: WordPress Social Login » Twitter Avatar too small

  • Resolved schoenwaldmedia


    Hi there,

    the plugin as a whole works fine. But sadly the avatar of a twitter-account is only the 48x48px sized version. I would like to show the wordpress-standard-size of 96x96px.


    Is there any option to get a bigger avatar?
    I’ve searched in the plugin-files to find the order which captures the avatar from the twitter-app. But I wasn’t able to find it.


Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Miled


    that the size we receive from twitter API and there is no easy way to change it (at least for now).

    if you want to have a bigger picture (so badly) then here is how:

    if( strtolower( $provider ) == 'twitter' ){
    	update_user_meta ( $user_id, 'wsl_user_image' , str_ireplace( "_normal", "", $hybridauth_user_profile->photoURL ) );
    	update_user_meta ( $user_id, 'wsl_user_image' , $hybridauth_user_profile->photoURL );

    nonetheless, I will look what can I do in future versions, but I won’t promise anything.

    Plugin Author Miled


    or a better solution is to make a hook to modify the user avatar.. google for “add_filter( ‘get_avatar'”

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Twitter Avatar too small’ is closed to new replies.