• Resolved tepennock

    (@tepennock)


    Hi,

    I am struggling to sort out the open graph settings on my website. When I share links to social media, the og image is not displaying. When I put it through the debugger it claims “Invalid Image Content Type” and “Provided og:image URL, <<image URL>> could not be processed as an image because it has an invalid content type.

    I’ve searched high and low to solve this and I have hit a brick wall.

    I am using the DIVI theme and all my plugins are up-to-date. I’ve done all the usual stuff of disabling them etc.

    Any help or advice would be appreciated.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • WordPress has no open graph feature.

    What plugin are you using for this? Or is it a feature of your Divi theme?

    When I view the HTML source of the URL you provided, I can see the three open graph image meta tags, and all three are erroring out:

    og:image: http://.../wp-content/uploads/2024/01/ATLAS-Boiler-on-Frames-Assembly1.png

    — Returns 403:Forbidden

    og:image:url: http://.../wp-content/uploads/2024/01/ATLAS-Boiler-on-Frames-Assembly1.png

    — Returns 403:Forbidden

    og:image:secure_url: https://.../wp-content/uploads/2024/01/ATLAS-Boiler-on-Frames-Assembly1.png

    — Fails to open (ERR_CONNECTION_CLOSED). This is an HTTPS URL, but HTTPS is not working for your site at all, so, of course, the image cannot open.

    Thread Starter tepennock

    (@tepennock)

    I had the Open Graph Protocol Framework installed.

    I have switched it over to the Yoast SAO now. But the settings on the WP page editor are blank on all browsers.

    • This reply was modified 2 years, 4 months ago by tepennock.
    Thread Starter tepennock

    (@tepennock)

    I’ve checked the permissions of …/wp-content/uploads/… and everything is set to 0644 (rw-r–r–) .

    The HTTP status 403 could be returned for a million different reasons.

    Check your server logs for any clues as to why the file is returning 403. If you don’t find anything relevant, turn on WordPress debugging, try the URL again and let’s see what you find.

    And definitely fix your SSL/HTTPS issue.

    NB: Note that the “Invalid Image Content Type” message you’re seeing from the Facebook debugger tool is due to the errors I pointed out earlier. The image URLs are leading to an HTML error page, hence served with the content type for HTML pages text/html rather than the appropriate content type for the images.

    Thread Starter tepennock

    (@tepennock)

    Interestingly, I don’t get a 403 error when I’m logged into WP.

    Thread Starter tepennock

    (@tepennock)

    I’ve solved it. Corrupted .htaccess file in my ../web/ folder.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Open Graph Settings’ is closed to new replies.