• Resolved aaronrobb

    (@aaronrobb)


    Hello! I’ve always used TSF, and its a great plugin. But we just found a weird issue that I can’t figure out.
    On one site we run a photo contest, and the contest allows people to share photos on Facebook. The issue is that when TSF is running, it puts the generic fallback site image in the facebook post, but it should be posting the photo that is being shared.
    When we turn off TSF it shares the image properly.
    I’ve tried changing the options in the Social Image Settings area, but it still shows the default image if the plugin is still on.

    Is there a way around this without disabling the plugin?

    Thanks!

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

Viewing 1 replies (of 1 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hello!

    It seems that the plugin can’t discern the photo-contest photos, and is, therefore, falling back to a generic fallback image for social sharing.

    If you can tell TSF to use the images from the album, then that’d be great. However, I think it’s easier to disable TSF’s social sharing functionality for that page and let Facebook grab the images from the content.

    I believe this filter will do the trick:

    add_action( 'the_seo_framework_do_before_output', function() {
    
    	if ( ! is_singular() ) return;
    
    	if ( 5389 === the_seo_framework()->get_the_real_ID() ) {
    		add_filter( 'the_seo_framework_use_og_tags', '__return_false' );
    		add_filter( 'the_seo_framework_use_twitter_tags', '__return_false' );
    	}
    } );

    (Where do I place filters?)

    I hope this helps. Cheers!

Viewing 1 replies (of 1 total)
  • The topic ‘TSF Overriding Photo Contest Sharing Images’ is closed to new replies.