Problems with Facebook OG

#41884
  • Resolved DDS
    Rank Math free

    I installed Rhank Math and set all Facebook OGs correctly. I have also properly plugged in a Facebook app.

    In the html code I see all the og correctly.

    However, if I try to share a Facebook page or article instead of using the title tag as og:title it uses the h1 of the page and as a description takes the content of the first <p> tag.

    If I run facebook debugging the problem remains.

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

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    It seems that your theme(Local Citation by MTS) is also injecting some additional OG tags to your pages which is getting loaded when the post is shared.
    I have noted this down and I will passing on to the developers but at the moment I have modified the following line in Local Citation by MyThemeShop: class-citation-head.php (includes/class-citation-head.php) on line 169
    if ( ! citation_get_settings( 'status_opengraph' ) ) {

    and changed it to:
    if ( ! citation_get_settings( 'status_opengraph' ) || function_exists( 'rank_math' ) ) {

    Let me know if this is working as expected.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    DDS
    Rank Math free

    It works perfectly, thank you 🙂

    Todd
    Rank Math free

    Hello,

    We are so glad to be of help. We are always here if you need us in the future.

    Hey, if it isn’t too much to ask for – would you mind leaving us a review here?

    https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post

    It only takes a couple of minutes but helps us tremendously.

    It would mean so much to us.

    Thank you.

    Todd
    Rank Math free

    Hello,

    I wanted to update you that there is now an update available for Local Citation theme with a fix for this issue. So, you can safely update without worrying about the customization getting overwritten.

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

    DDS
    Rank Math free

    Thanks, I’ve already installed the update. You are the top 🙂

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

The ticket ‘Problems with Facebook OG’ is closed to new replies.