• Resolved pixelvista

    (@pixelvista)


    I have inherited tiny avatars from an old BuddyPress site and it is impossible to regenerate thumbnails up from 190x190px, when I tried with the Extension plugin my site broke too. The problem is Facebook has a minimum size that it will accept for sharing of 200x200px and it will fetch the home page feature image. As the user photos are mainly full facial ones at low res, they look awful on social share as you can imagine. I am really hoping there is a snippet that I can swap the photo, for the cover photo, which is far better plus members can make them into infographics if they like.

    A note re social sharing for other users on hosting that has high security and blocks bots, make sure to turn off the feature at your hosting or add the exclusions in the advanced section. Took me hours to figure out that popular share sites are not automatically excluded so you will get 301 redirects when you attempt to share.

    Thank you

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support andrewshu

    (@andrewshu)

    Hello @

    Try to use this hook, it change to cover photo:

    add_filter( 'um_profile_dynamic_meta_image_type', 'my_profile_meta_image_type', 10, 2 );
    function my_profile_meta_image_type( $image_type, $user_id ) {
    	$image_type = 'cover_photo';
    	return $image_type;
    }

    Regards

    Thread Starter pixelvista

    (@pixelvista)

    Fabulous but now another conundrum or two, the Extended plugin breaks my site when enabling the Regenerate Thumbs extension so I can’t regenerate the cover photos. I can’t find any other plugin that will include a custom folder either. The cover photos are now sharing but blurry and as a left side thumb still as the thumb needs to be regenerated to 1200px.

    Plugin Support andrewshu

    (@andrewshu)

    Hello @pixelvista

    Please create the issue here https://github.com/ultimatemember/Extended because the functionality you asked about isn’t related to the built-in functionality of the Ultimate Member plugin.

    Regards.

    Plugin Support andrewshu

    (@andrewshu)

    Hi @pixelvista

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread if any other questions come up and we’d be happy to help. ??

    Regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fetch cover photo instead of profile photo for social sharing’ is closed to new replies.