Unresolved issue Facebook images

#391954
  • Resolved Regio Online
    Rank Math free

    Since I could not reopen my previous ticket (disabeling Rank Math displays shared featured images on Facebook again) I have to open a new one. Sorry for that. I am facing the following issue:

    Sorry to bother you again with this, but now almost all shared images on FB are missing.

    Only a few images are displayed but all other images have disappeared all together it seems. This happend on all our 37 FB pages about 6 or 7 days ago.

    What changed at our end?

    Since a few weeks we use the plugin FS Poster so we can autopost each regional post to it’s corresponding FB regional page. So this articke on the regional page Regio Krimpenerwaard on our website, is autoposted to our regional FB page Regio Online Krimpenerwaard.

    The sharing went fine, including images, but after using it a few weeks suddenly all images seems to be missing on FB. We autopost about 40 post a day spread across 37 FB pages. Tried to post it manualy by disabeling the autopost plugin and just paste the sharelink, but that did not work either anymore.

    Important to know maybe is that we disabled and removed the JetPack plugin, since we didn’t had anymore use for it. Can we have messed something up that way?

    Please, do you have any clue what could be at miss here. Are we to blame ourself for posting to much? Or could have been some code changes in WP or Rank Math regarding the opengraph images? When I paste the mentioned link in the Sharing Debugger of FB it recognizes the right link for the og:image, but does not display it. See screenshot https://imgur.com/VNhIetN

    Just to be sure, I followed all the steps from the previous ticket (disabeling Rank Math displays shared featured images on Facebook again). The custom filter still in place in the functions.php of our child theme. Had to disable lines 214-216 again in class-image.php (rankmath plugin folder/includes/opengraph/) after an update of Rank Math, but that did not work either.

    Any help you could give regarding this strange behavior would bevery much appriciated, as is your time and efforts. I posted the sensitive data, so you can take a look for yourself if you need to.

Viewing 14 replies - 1 through 14 (of 14 total)
  • For the record: the previous ticket I reffer to has number #347621

    The filter I mentioned, you wrote for us, see below

    add_filter( “rank_math/opengraph/facebook/image”, function( $attachment_url ) {
    $attachment_id = get_post_meta(get_queried_object_id(), ‘_thumbnail_id’, true);
    $gdrive_image = get_post_meta($attachment_id, ‘wpmf_drive_link’, true);
    if($gdrive_image) {
    $attachment_url = $gdrive_image;
    }
    return $attachment_url;
    });

    That filter worked just fine by the way.

    Ticktnumber #347621

    The filter, see below

    add_filter( “rank_math/opengraph/facebook/image”, function( $attachment_url ) {
    $attachment_id = get_post_meta(get_queried_object_id(), ‘_thumbnail_id’, true);
    $gdrive_image = get_post_meta($attachment_id, ‘wpmf_drive_link’, true);
    if($gdrive_image) {
    $attachment_url = $gdrive_image;
    }
    return $attachment_url;
    });

    That filter worked just fine by the way.

    Hello,

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

    We can’t seem to check your theme files in your dashboard. Can you please also share your website FTP so we can further take a closer look at it?

    Looking forward to helping you on this one.

    Hello,

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

    Thank you.

    Hello,

    Thank you so much for sharing your FTP access.

    I tried accessing it but the username or password doesn’t seem to work. Please refer to my screenshot in the Sensitive Data section.

    Can you please verify so we can further troubleshoot the issue?

    Looking forward to helping you on this one.

    Hello,

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

    Thank you.

    Hello,

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

    Thank you.

    Just reset the password (see sensitive data) although I had no problem login in with the old data. Tested this one and it also works (see screenshots in sensitive data). Needless to point out to fill in portnumber 21 I think, but just in case. 😉

    Let me know I it works out now or you hit any issues Jeremy

    Hello,

    We have checked the article that you mentioned and noticed that Facebook is not parsing the Google Drive links correctly as you can see from this error message:
    Share issue image

    Basically what’s happening is that the URL that is inside the og:image meta tag is being redirected to a different place which causes this error to appear with the Share Debugger.

    We tried to disable the Rank Math plugin temporarily but even then the og:image property was not getting parsed and the following error appeared on the pages:
    Image parser

    To get around this issue the redirection that is happening on the current Google Drive link needs to be removed somehow by fetching the direct URL of the image.

    Unfortunately, we don’t have a way to get that URL because the one saved in the database is the current one being outputted via the filter we have provided in the previous ticket.

    Don’t hesitate to get in touch if you have any other questions.

    Thanks for your time invested in this. Your filter worked before, bur some now the Google Drive link is not the right one anymore I understand. Google drive only has encrypted links with no image extension to it. No clue why your earlier solution does not work anymore. We will investigate further on our site. Thanks for the input Miquel

    Just a follow-up question:

    In a previous ticket you advised to comment out lines 214-216 in plugins/seo-by-rank-math/includes/opengraph/class-image.php to prevent the WordPress core check if a link has an image extension (wich a Google Drive link does not have).

    Is this still the same lines to comment out, because if I look now line 217 seems to be part of that as well. Or has something changed with this check and do I need to comment out something else?

    In addition to earlier information:

    I looked at a shared post (https://regioonline.nl/regio-krimpenerwaard/woning-patrijspad-lekkerkerk/) on our Facebookpage https://www.facebook.com/RegioOnlineKrimpenerwaard

    The post is shared correctly by FS Poster plugin, but as you can see, the image is a blank (black square) FB post view blank/black square image

    If I right click on the blank image to open Google Developper I see the following link:
    https://external-ams4-1.xx.fbcdn.net/safe_image.php?w=500&h=261&url=https%3A%2F%2Fdrive.google.com%2Fuc%3Fid%3D1_K0BpGuGNcULq6gVUMZIiF2rawyYnFJO&cfs=1&ext=jpg&utld=google.com&_nc_oe=7027d&_nc_sid=505865&_nc_o2e=1&ccb=3-6&_nc_hash=AQF6xkx2kp814Ukl

    As you can see it point to the Google Drive Image and recognizes the right image extension (&ext=jpg&). See screenshot also

    FB saveimage.php check with link of Google Drive image and extension

    So everything seems to be served coorectly to FB. Could this be a sudden Facebook issue? Before you answer ‘yes’ to that question 😉 please can you answer my question before this reply also? Thanks for being great guides in this digital world for us!!

    I respect your tinme spent on this, and since I am just a ‘freebie’ with Rank Math, I understand your support efforts to your paying customers go first.

    So I will close the ticket and we will try to find a solution some how, with the information you have given already.

    Thanks again for your efforts and time spent.

    Hello,

    The lines that need to be commented out now are 229-231 which look for the valid image extension.

    Regarding the image, when you click on the link it works because it redirects correctly, but when Facebook parses the URL it doesn’t follow the redirection that loads the image and that’s why it shows the error we mentioned before.

    This doesn’t seem an issue with Facebook and it seems more related to the situation we explained about the URL not being parsed correctly because of the redirection.

    Don’t hesitate to get in touch if you have any other questions.

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

The ticket ‘Unresolved issue Facebook images’ is closed to new replies.