• Resolved Rednasil

    (@rednasil)


    Hello,

    I am having an issue when sharing links for custom posts to facebook.

    When I paste the link in the post creator on facebook, the thumbnail is shown. But it gets removed once the post is published.

    This is not the case when a normal post is shared from the same site. The thumbnail remains visible even after the post is published.

    In Facebook’s debugger I get the following warnings:

    Inferred Property: The ‘og:image’ property should be explicitly provided, even if a value can be inferred from other tags.

    Missing Property: The following required properties are missing: og:image, og:description

    What is the best way to deal with this?

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi @rednasil,

    We checked the example page’s HTML, but we confirmed that there is no og:image meta tag set for the page.

    If you edit the post, does it have a featured image, or have you set a Facebook image in the Yoast SEO metabox?

    If not, does adding the image solve the problem? You may have to clear any page cache from your website and use the Facebook Sharing Debugger to clear Facebook’s cache.

    Thread Starter Rednasil

    (@rednasil)

    Hi @priscillamc,

    The posts do contain a featured image.
    I tried adding an image to Yoast metabox. Now when I share a link on Facebook, I get the right image being shared, together with images from other posts.
    The warnings in Facebook debugger tool remained the same.

    • This reply was modified 4 years, 6 months ago by Rednasil.
    Plugin Support devnihil

    (@devnihil)

    @rednasil If you are seeing unexpected behavior or appearance for one of your site’s social previews when sharing it on social media, this can be caused by the social media site or debugger caching old metadata for that page. This is why you may not immediately see the new values you set up for the page reflected in the page’s preview when you share it (image, title, description, etc).

    Can you please try running the Facebook Sharing Debugger on the page you are experiencing the issue on, and under ‘When and how we last scraped the URL’ clicking the ‘Scrape Again’ option and letting us know whether this resolves the issue? The ‘Scrape Again’ option will force Facebook to update it’s cache for your page’s link.

    Please note that to successfully update the cache it may require re-scraping your page several times as whether the page’s data can be read may take several requests between Facebook and the server your website is hosted on. Also, this guide includes more information on this and explains in detail how to do this: https://kb.yoast.com/kb/facebook-sharing-updated-details/

    We are looking forward to your reply in order to assist you with this further.

    Thread Starter Rednasil

    (@rednasil)

    Hi @priscillamc and @devnihil

    Just an update: The Custom Posts are published automatically to Facebook using Jetpack’s publicize feature. These are created by our users.
    Today I noticed that images are now being displayed on Facebook when a link is shared. But, each link is displaying the image belonging to the previous post.

    I ran the latest link through the debugger tool and on the first run it showed the right image. The Inferred Property og:image warning is still in place. When I share to Facebook the issue remains that I see some images from the right post. And another from the post before it.

    Plugin Support Michael Ti?a

    (@mikes41720)

    Hi,

    We understand that your users create these custom posts and they are automatically shared to Facebook using Jetpack’s publicize feature, but instead of showing the correct image in the preview, it shows the image from the previous post. Is this correct?

    Would it be possible for you to provide us with a URL when the custom post is created so we can check what the og:image tag output is in Facebook’s Sharing Debugger Tool? We’re not sure if this would be an issue with Jetpack, but we do know that if you’ve defined a featured image or set a specific og:image in the Facebook Social tab in the Yoast SEO meta box, that should be the expected image outcome in the social preview.

    Thread Starter Rednasil

    (@rednasil)

    Hi @mikes41720

    That is correct.

    This is the link where the posts are being submitted: https://autosopcuracao.com/add-car/

    Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    Instead of sharing where the guest author submits the post for your site, please share the exact page URL where the issue remains occurring for you so that we can test it on our end.

    We also see that you have already shared a page in your initial query. However, we are not sure whether the issue still persists on the same page. Can you please confirm this?

    Thread Starter Rednasil

    (@rednasil)

    Hi @mazedulislamkhan I’, sorry about that.
    Now I went to share an example, but I can see the correct image on Facebook when I preview the post. But the image is removed once the link is shared.

    THis is an example: https://autosopcuracao.com/car/kia-sportage-2007-te-koop/

    Hi @rednasil,

    If you’ve set a featured image or a Facebook image for this page, we recommend doing a conflict check. This is to test and see if Yoast SEO outputs an og:image tag if you?deactivate all non-Yoast plugins and switch to a standard theme?like?Twenty Nineteen.?Can you let us know if an og:image tag appears in the example page? You can find it by checking the page source.

    We recommend doing this on a staging site or using the?Health Check & Troubleshooting?plugin.

    We have a step-by-step guide here:?How to check for plugin conflicts.

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Missing Image When Sharing CPT To Facebook’ is closed to new replies.