• Resolved WP Sites – Brad Dalton

    (@wordpresssites)


    Hi. Possible to filter the image used for social sharing so i can use one which added via a custom field rather than the featured image?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    That’s indeed possible.

    When you share a post on Facebook, LinkedIn or Google+, or when Jetpack Publicize publishes a post to your Facebook page / profile, Facebook crawls the page and looks for Open Graph meta tags in the head to build a complete post preview (with an image, title, description, …).

    Jetpack automatically creates these Open Graph Meta tags for you unless you already use another Open Graph plugin, in which case we let the other plugin handle things.

    If you do use Jetpack to manage Open Graph Meta tags, you can use the jetpack_open_graph_tags filter to customize the tags added to each post or page:
    https://developer.jetpack.com/hooks/jetpack_open_graph_tags/

    You could consequently use that filter to unset the images added by Jetpack and replace it with an image you added via post meta for example.

    You can use that same filter to change the output of the twitter:image meta tag, used when sharing a post on Twitter.

    I hope this helps.

    Thread Starter WP Sites – Brad Dalton

    (@wordpresssites)

    Thanks Jeremy. Works for some social networks but not for others.

    Doesn’t work with Linkedin.

    I assume Linkedin uses og:image

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    LinkedIn does indeed uses Open Graph Meta Tags as well. If your OG tags are properly set and LinkedIn still doesn’t pick up the right image, I’m afraid I can only recommend that you contact LinkedIn support about it, as they do not offer any tool allowing you to troubleshoot these issues on your own.

    Sorry not to be able to help you more.

    Thread Starter WP Sites – Brad Dalton

    (@wordpresssites)

    Yes, i did read the content Linkedin provided about OG tags and tested multiple solutions. https://developer.linkedin.com/docs/share-on-linkedin

    Based on my testing, Linkedin grabs the featured image regardless and the only way to use a custom image is to remove the featured image.

    It might have something to do with the submitted-image-url

    Thanks for all your help Jeremy.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change Sharing Image’ is closed to new replies.