rank_math_facebook_image

#761096
  • Resolved Wayne Neesam
    Rank Math free

    I have some code which updates the ‘rank_math_facebook_image’ field the function in the sensitive data text input. This is working and updates the database however this does not pull through to the webpage HTML which always shows the global OpenGraph Thumbnail.

    If I remove the global thumbnail, the ‘meta property=”og:image” content’ disappears.

    So basically the image is in the database but it is being completely ignored?

    My images are 1200 by 628px and I have tried with both webp and png.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    I’m sorry to hear about the issue you are facing with the ‘rank_math_facebook_image’ field not reflecting on your webpage HTML. It seems like the global OpenGraph Thumbnail is always being displayed instead of the custom image you are setting.

    Based on the information provided, it appears that even though you have updated the ‘rank_math_facebook_image’ field in the database, it is not being reflected on the webpage. This could be due to a priority conflict with the global OpenGraph Thumbnail setting.

    To troubleshoot this issue, please ensure the following:

    1. Check if there are any conflicting settings in Rank Math that might be prioritizing the global OpenGraph Thumbnail over the custom image set in the ‘rank_math_facebook_image’ field.
    2. Verify that the custom image you are setting meets the recommended dimensions of 1200px by 628px and is in either webp or png format.
    3. Double-check the implementation of the code that updates the ‘rank_math_facebook_image’ field to ensure it is correctly updating the database.

    If after checking these points, the issue persists, you may need to review the Rank Math settings and configurations to ensure that the custom image is given priority over the global OpenGraph Thumbnail.

    If you continue to experience difficulties, please reply to this ticket, and a human agent from our support team will assist you further.

    Thank you for bringing this to our attention. We appreciate your patience as we work to resolve this issue for you.

    Best regards.

    Sources:
    Open Graph/Social Preview Image Is Not Displayed » Rank Math
    Open Graph Meta Tags » Rank Math
    Open Graph/Social Preview Image Is Not Displayed » Rank Math
    How to Fix the ‘og: image’ Property Should Be Explicitly Provided » Rank Math
    Open Graph Meta Tags » Rank Math

    Hello,

    Thank you for contacting Rank Math support.

    The image for OpenGraph tags is fetched from the rank_math_facebook_image_id meta key. This field holds the ID of the image you set as the social image. You will have to change this field with the code to apply the correct image.

    However, you can also use the following filter to update Facebook and Twitter image URLs in the front end: https://rankmath.com/kb/filters-hooks-api-developer/#change-opengraph-image

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Wayne Neesam
    Rank Math free

    Thanks, updating the ’rank_math_facebook_image_id’ did the trick:)

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post or TrustPilot about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

The ticket ‘rank_math_facebook_image’ is closed to new replies.