• Resolved renko

    (@renko)


    Hello,

    Before I upgraded the plugin to version 4.0… everything was working ok with posts on Facebook. When I paste a link to Fb, the image preview appears and when I published the post everything works as expected.

    Now with version 4.0.12 when I paste the link to Fb, the image appears in the post preview, but when I publish the post, the image disappears (there is no image at all).

    Even on https://developers.facebook.com/tools/debug/ everything looks ok, the image is scraped, but when the post is published on Facebook the image disapear.

    I investigate the issue a bit and I found out that the problem is the All In One SEO plugin, when I disable it, the image appeared on the published post on Fb.

    I also checked the Scraped URL and it turned out that there are 3 og:image tags. Two of them are logos (in the AIOSEO plugin versions before 4.0… there was only one og:image tag, which was pointing to the correct image on the post – I checked that on my staging copy created before plugin update).

    Here you can find the source code from one of my URLs where the problem occurs: view-source:https://www.go-buildyourself.si/vaje-za-hujsanje-doma/

    Maybe too many og:image tags are the problem that the images are not displayed on Fb when the post is published?

    Can you please check this on your side?

    Thank you and best regards,
    Rene

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author arnaudbroes

    (@arnaudbroes)

    I think you’re on the right track with those duplicate sets of OG tags. Those are not coming from AIOSEO so I would try to narrow down which plugin (or perhaps your theme?) is outputting those.

    Thread Starter renko

    (@renko)

    @arnaudbroes Thank you for your reply. Strange is that if I disable the AIOSEO plugin, it is working ok (that is my workaround right now for posting on Fb. I disable the AIOSEO for a couple of minutes, create and publish a post on Fb, and then activate AIOSEO again).

    And as said, AIOSEO versions prior 4.0… works perfectly fine for me.

    Of course, I don’t know the background, but just sharing my findings.

    Best regards,
    Rene

    Thread Starter renko

    (@renko)

    @arnaudbroes I investigated a little bit more and found out the following:

    I switched to the Twenty Twenty-One theme and the og:image tags at the beginning disappeared. Then I switched to Generate Press Theme, which I am using, and the og:image tags also seem to work correctly. But when I switched back to my Generate Press child theme, the multiple og:images tags appears again. I tried with a clean child theme, with absolutely no code, I downloaded the child theme from here: https://docs.generatepress.com/article/using-child-theme/

    But the problem is the same. It seems that the issue is related to the use of the Child Generate Press theme, and it occurs even if the Child theme is completely empty.

    Hope that this helped a little. I cannot switch to the non-child theme, because I have some custom code that must be placed in the child. But as said even a completely blank child theme causes the og:image duplicates.

    Your support is highly appreciated!
    Regards,
    Rene

    I am having this same issue. The update cause all of my posts to use a default image when posting to facebook. I have the social media setting set to use featured image but all of my current posts are now using the default. I would have to change the setting in every single post over 2000. I am using the divi plugin. What can i do?

    Plugin Author arnaudbroes

    (@arnaudbroes)

    @renko do you see any theme options in the Customizer with regard to Open Graph meta (or something called social snippets or similar). Alternatively, you can also check your parent theme’s header.php file to see if they are doing something there.

    Thread Starter renko

    (@renko)

    @arnaudbroes sorry for the confusion I made. I performed a further investigation and it turned out that the issue is not related to the theme. The reason that the tags in AIOSEO section disapeard was because I forgot to set the logo image.

    But I was able to find which plugin generates meta tags for social sharing and these tags are ok because there is the featured image set which also has height and width attributes.

    By the tags set by AIOSEO plugin, there is always a logo image set, which I don’t want. In the old version of AIOSEO plugin, the plugin itself did not generate any og:image tags at least in my case not.

    Is there an option to disable the og:image tags to be generated by AIOSEO? The tags I am talking about are these 2 (in the image below):

    https://drive.google.com/file/d/1PGhNrfPzFRyL7bbRfTQvHg966R3Rojh0/view?usp=sharing

    I want the tags the plugin generates because these tags have the correct feature image set and also sizes height and width.

    Best regards,
    Rene

    Plugin Author arnaudbroes

    (@arnaudbroes)

    Hey Rene,

    Unless you filter them out through our filters (I can provide with you with a code snippet if you like), you would need to disable Facebook meta under Social Networks. That will prevent the plugin from outputting any Open Graph meta tags though, not just those two.

    – Arnaud

    Can you offer any help with the issue of change the setting for 2000 posts?

    Plugin Author arnaudbroes

    (@arnaudbroes)

    @pwwoodson please create a separate thread with screenshots of your Social Networks settings, as well as your site URL, and I will take a look at it.

    Thread Starter renko

    (@renko)

    Hello @arnaudbroes,

    Thank you. Yes, I disabled the FB under social medial so the tags are not generated by AIOSEO plugin.

    I investigated a little bit and see that if the FB is enabled under social media, the AIOSEO plugin creates (duplicate) the image that will be displayed on FB with sizes – code snippet below:

    <meta property=”og:image” content=”https://www.staging5.go-buildyourself.si/wp-content/uploads/2020/11/hamburger-1024×364.jpg&#8221; />
    <meta property=”og:image:secure_url” content=”https://www.staging5.go-buildyourself.si/wp-content/uploads/2020/11/hamburger-1024×364.jpg&#8221; />
    <meta property=”og:image:width” content=”1024″ /><meta property=”og:image:height” content=”364″ />

    Is there any way to just tell the sizes of the image and not create another image with different dimensions (1024×364) for each blog post, because I don’t want duplicated images, because of disk space.

    The plugin I am using now is doing the following thing: It just link to the featured image and set the dimensions, not duplicating the image, see below:

    <meta property=’og:image’ content=’https://www.staging5.go-buildyourself.si/wp-content/uploads/2020/11/hamburger.jpg&#8217; />
    <meta property=’og:image:width’ content=’620’/><meta property=’og:image:height’ content=’541’/>

    I want to use the AIOSEO plugin to generate the og:tags for me, because it is much more sophisticated than the plugin I am using right now, the only thing that makes me hesitate is the featured image duplication.
    Is it possible (maybe once in the future), to add the option to just link to the featured image and set the dimensions and not duplicating the image? This will be very useful at least for me.

    Thank you for a great plugin.

    best regards,
    Rene

    Plugin Author arnaudbroes

    (@arnaudbroes)

    Hey @renko,

    Those aren’t duplicate images in the strictest sense of the word, but it’s actually WordPress that’s resizing your images (they do this natively). However, I made some improvements to this in the next version of AIOSEO so that this no longer happens. The next update should be out somewhere next week.

    Can you try it out and then get back to me after that?

    – Arnaud

    Thread Starter renko

    (@renko)

    @arnaudbroes Thank you for the great news!

    I will definitely wait for the update and test it out. I will let you know about the results.

    Really appreciate your efforts and thanks again for the fix you made!

    Regards,
    Rene

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Facebook image not display when posting a blog post’ is closed to new replies.