Facebook ignores og: image for link to shared site

I recently noticed that facebook began to ignore my og: image tag on my site. The image used is always larger than 200x200.

Here is an example page:

http://bit.ly/15CrOhS

http://bit.ly/1b8Mgbe

There seem to be a lot of questions, but no answers. I added all the og info and checked with linter and it all goes fine. So why does he choose a random image?

I use facebook api to send PHP:

<?php $link = 'http://www.mylinkaddress.com'; $msg = 'Check out my new photo. '.$link; $get_oauth = "SELECT * FROM users_oauth_cred WHERE userid = ".$_SESSION['userid']." AND share = 1 AND oauth_access_token != ''"; $get_oauth = mysql_query_run($get_oauth); $oauth = mysql_fetch_array($get_oauth); # FACEBOOK $facebook = new Facebook(array( 'appId' => FACEBOOKAPPID, 'secret' => FACEBOOKSECRET, 'cookie' => false, )); $token = $oauth['oauth_access_token']; try { $result = $facebook->api( '/me/feed/', 'post', array('access_token' => $token, 'message' => str_replace($link,'',$msg), 'link' => $link) ); } catch(FacebookApiException $e) {} ?> 
+4
source share
5 answers

Testing your request with the facebook APIs APIs worked great for me. You can try to add an additional parameter "image" in your post and put a link to your image in it.

So facebook is forced to use this as an image in a post.

 $result = $facebook->api( '/me/feed/', 'post', array('access_token' => $token, 'message' => str_replace($link,'',$msg), 'link' => $link, 'picture' => 'http://images.ephotozine.com/gallery/2011/49/normal/52194_1323334048.jpg') ); 
+2
source

I had the same problem.

Go to Facebook Object Debugger, make sure that all the problems released there are fixed. This solved my problem.

http://goo.gl/ASBsAa

+5
source

After reading all the comments here, I think the following has happened. Let me know how much I got. This is a shot in the dark .;)

The first time you shared the Facebook URL, the og: image was not set up perfectly, and Facebook selected a random image on the page and pinned it.

Then you set the og: image tag and tried to check the same url. Then the FB smoothed the cached image.

I tried with your links just now, and everything seems fine.

: {D

+1
source

Just be patient. Facebook takes some time to crawl this image. It will not immediately appear on Facebook. If your image doesn’t appear after a few days, just release the note.

0
source

Much testing and attempts by other bulk loaders, etc. Finally, I just decided to write a facebook with details and screenshots. the next day the problem is resolved. So make sure to try this from the email help via email through your facebook account. worked for me.

0
source

Source: https://habr.com/ru/post/1502806/


All Articles