Open graph not working

#265340
  • Resolved Campustica
    Rank Math free

    Hello and greetings,
    I am having problems with Facebook open graph which I believe is caused by the Rankmath plugin.

    My posts don’t show featured images/thumbnails when shared on Facebook or other social media. The problem started after I installed rankmath and added open graph metadata using the plugin.
    I have also checked the issue on Facebook’s sharing debugger and the response is that the image could not be displayed because of invalid content type.

    I have tried everything including uninstalling and reinstalling plugins but no solution. Kindly help me through because my blog depends on Facebook for 90% of its traffic.

    I have also tried changing different images, using the recommended 1200×630px, clearing cache, and scraping but to no success.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Prabhat
    Rank Math agency

    Hello,

    Thank you for contacting us and we regret the inconvenience caused.

    I checked the source of your homepage and the og:image (social image) is redirecting to the homepage of your website and that is causing the issue here.

    Please have a look at the screencast in the sensitive data section for a quick reference.

    Please ensure that no such redirections are applied to the og:image. Once fixed, your can test the website again in Facebook’s Debugger Tool.

    Hope this helps.

    Thank you.

    Thank you for the prompt reply.

    However, how do I do that. I don’t have any other plugins for url redirections except rankmath but I turned off the redirections and it is seems to be redirecting to the homepage.
    Kindly how do I work out the redirection?

    Prabhat
    Rank Math agency

    Hello,

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Prabhat
    Rank Math agency

    Hello,

    As I logged into your website’s admin area, the redirection automatically stopped and the og:image loaded without any issues.

    You can have a look at the screencast in the sensitive data section of this ticket.

    This indicates that the issue is likely related to caching. Please clear your website and server’s cache and see if the redirection is fixed.

    You can also get in touch with your web host regarding this.

    Please let us know how that goes.

    Thank you.

    Hello again,
    Unfortunately my problem has not been solved even after deleting caches. I have tried everything I could possibly do. Is there any way you can assist me,kindly?

    Prabhat
    Rank Math agency

    Hello,

    I checked and the image is still redirecting to the homepage. I tried to login into your website but it seems like the logins have already expired.

    However, upon testing the image URL using https://httpstatus.io/, I found that there are two redirections applied i.e, a 302 and a 301 redirection. The 302 redirection redirects to the HTTP version of the website and 301 redirects to the homepage.

    You can have a look at the screencast in the sensitive data section of this ticket for a quick reference.

    Also, I tested the variation of your website, and the HTTP + www variation has double 301 redirection (screenshot in sensitive data section). All the non-preferred variations of the website should return only a single 301 + 200 status.

    Since the image redirection was getting fixed upon logging into your website, please get in touch with your web host regarding both the issues as they would be in a better position to assist you.

    Please let us know how that goes.

    Thank you.

    My webhost redirected me to the ‘developer’ after clearing server cache, and basically that means the plugin developer(you).

    I have updated the login credentials so that you can access and check out if there’s a way you could help because my host can’t do much.
    I’m also a non-techie I didn’t understand what you said up there. Is there a way to remove all those redirections you mentioned?
    Kindly advise.

    Hello,

    The issue is present on your site even when Rank Math is disabled. I can check that you have several URL rewriting rules in the .htaccess file, which might be causing the issue.

    Could you please grab the default .htaccess file from here and re-check it?

    If you are not sure then you can get in touch with your host and they will be able to help you with this.

    Let us know how that goes. Looking forward to your update.

    Thanks.

    Hello again,
    (UPDATE)

    I’m glad that my issue looks fixed for the time being.

    The redirections were caused by rewriting rules in the .htaccess file(as you had stated earlier) and they disappeared once I replaced it.

    When I debug the posts on Facebook’s sharing debugger the post thumbnails appear correctly.

    I can’t explain how grateful I am for your assistance, you saved me a lot of time and work.

    Again thank you very much!

    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 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 11 replies - 1 through 11 (of 11 total)

The ticket ‘Open graph not working’ is closed to new replies.