-
Hi,
I’ve took some searches around google, to find out why when i use Rank Math my photo that is in post doesn’t post on facebook, but my logo of site does, since i’ve used Yoast and i am well aware it should be possible, then i discovered that Rank Meth has a bad integration of photo sharing on social network its pretty much i guess limited, to 1200×630 i believe, while yoast can adjust.
Is there some code that can be re-done, so i can change width&height of post requiment. Issue is i canot resize photos, as it takes directly from TMDB photos. and system is automatic, also once my website obtains info, it shares directly to facebook page, so its not really possible for me to edit every single post, as there is many posts
-
Hello,
We apologize for the inconvenience you’re experiencing with the Open Graph image not displaying correctly on Facebook after auto-sharing. It seems like you’re encountering issues with the image dimensions and format when sharing posts on social media.
Rank Math does support customizing the Open Graph image size and format. The recommended image size is 1200px X 630px, and Facebook supports jpeg, png, and gif image formats. If the images from TMDB are not in the recommended size or format, they may not display correctly when shared on social media.
You can set a default Open Graph thumbnail at WordPress Dashboard → Rank Math → Titles & Meta → Global → OpenGraph Thumbnail. Additionally, you can set a custom Open Graph/Social Preview image by uploading a featured image for each post/page.
If you’re using Rank Math, you can also set the Open Graph Thumbnail for your homepage under Rank Math SEO → Titles & Meta → Homepage → Homepage Thumbnail for Facebook.
If you’re still facing issues, please feel free to reach out to our support team for further assistance. You can contact them here.
I hope this helps! If you have any other questions or need further assistance, please let us know.
Sources:
Open Graph/Social Preview Image Is Not Displayed » Rank Math
How to Fix the ‘og: image’ Property Should Be Explicitly Provided » Rank Math
The #1 WordPress SEO Plugin in 2023 – Rank MathSo this is dimension example: https://image.tmdb.org/t/p/w600_and_h900_bestv2/8xV47NDrjdZDpkVcCFqkdHa3T0C.jpg
and its impossible for me to add for each post as said, as i’ve have automatised system which uploads lots of movies/series in a day, and after that proccess it automatically uploads post, and photo that is from is linked above, everything is automatised, so featuring for each post is impossible mission it i would have to re-post manually and i would have to add custom photos for 10 of thousands movies/series and more…Is there some code i could modify to exchange the diffrence since on Yoast it actually works just fine..but i would prefer to use rank meth, but if i cannot manage to make it i would have to stick to yoast at end..
Hello,
Thank you for your patience.
Could you please share the affected URL so we can check?
We have tried to insert the image into the content on our test install, and it already appears in the Opengraph meta tag.
Meanwhile, you may use and customize this filter to prevent the default Opengraph image from being applied on your site:
https://rankmath.com/kb/filters-hooks-api-developer/#prevent-default-image-ogLooking forward to helping you.
Sorry currently i dont have activated Rank Math till i dont get any solution for which i could atually activate it. Constant exchanging seos will make my site in jepurdy also people are using site so i avoid to make drastic changes all the time.
btw on Yoast it ends in this dimension on facebook
https://external-muc2-1.xx.fbcdn.net/emg1/v/t13/12810591985316523248?url=https%3A%2F%2Fimage.tmdb.org%2Ft%2Fp%2Fw600_and_h900_bestv2%2FjNIn2tVhpvFD6P9IojldI3mNYcn.jpg&fb_obo=1&utld=tmdb.org&stp=c0.5000×0.5000f_dst-jpg_flffffff_p139x215_q75&ccb=13-1&oh=06_AbGt9w6r_50WW3RMFdU7s6vwbopd9FnMzkFEm6ITCSv3xA&oe=65AB8627&_nc_sid=14c225While Rank Math posts always My logo from website and its anoying i’ve tried lots of things and i cannot manage to make it, i’ll try and see link u given but i dont understand it…
this is photo i get when i use rank math, which is logo or any media file that fits rank math best i guess..
in view source i dont see OG for image rest yes but image no.. when i am on post..and this is link of preview: https://filmovisanje.com/en/movie-godzilla-minus-one-online-free/
Be more specific, cause nor article nor you were specific where to add filters from https://rankmath.com/kb/filters-hooks-api-developer/#prevent-default-image-og
Please take some time to explain your steps, not everyone is expirienced developer to understand what you meant with that thread.Hello,
We apologize for the difficulty you are experiencing.
Please add this filter code to your site to prevent the default opengraph image from being applied on your site.
/** * Passing a truthy value to the filter will effectively short-circuit the * set default image process. * * @param bool $return Short-circuit return value. Either false or true. */ add_filter( 'rank_math/opengraph/pre_set_default_image', '__return_true' );
And here’s a guide on how you can add the filter to your site:
https://rankmath.com/kb/filters-hooks-api-developer/Let us know how this goes. Please let us know if you have further questions or concerns.
Thank you.
beetwen its me Denis Marijanovic this another user, just another account i guess..
That did not help me at all it still shows default which is logo, and not photo from post that it should
so this is what comes from rank math post https://www.facebook.com/filmovisanje/posts/pfbid02GzGRWUuuQX3UajozaQytxoiY3B7DJcbkuFsSPGsV7KxYGjbcH4fnmudZkjtqMqzRl?__cft__%5B0%5D=AZUGtI-vhYCBl0uX18Ok3RQ9kbhQrbdJcrO1iy02bhXiQV9X4tNW8iZihg2eqZqikPOQ7it1UjAazx77sualMb6ZVonq0Ld2AQAXQk5I-TkpvwsHWSoigSjf8AfnV0nDxNKLoUbjA5_1QRt7h0rhTNuSYiHoiWNOaAF425J7oN95XXhgrrqLe-gmq5jKu1oANUM&__tn__=%2CO%2CP-R
So as you can see yoast shows posts image, while rank math shows logo of website which is completely incorrect. If i delete all photos from media it wont show any photos..
also when adding in functions.php as i cant find in rank-math.php in my theme i get this error after inserting code u given There has been a critical error on this website.
Learn more about troubleshooting WordPress.
Can someone please reply this request a bit quicker? need to resolve this since i cant leave this SEO unless i find a solution to fix it..
Fair, but when i use Yoast it works just fine, and on rank math it doesn’t, so it doesn’t make sense, if issue was size or whatever then on Yoast it wouldn’t upload, since i’ve uploaded 2 diffrent posts that were made on facebook. One with Yoast which works perfectly as should, and one with rank math, that doesn’t work as it should…
and here it says The ‘og:image’ property should be explicitly provided, even if a value can be inferred from other tags.
I have no clue how to fix thatcurrently its not showing any images nor default, however it doesn’t show either how i want it to show from post, so how to make it add from post OG:Image in view source doesn’t show OG:image but rest it shows
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.
The ticket ‘OG Image doesn’t show on facebook after autoshared.’ is closed to new replies.