4

I have recently noticed that facebook has started ignoring 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

Seems to be alot of questions, but no answers. I've added all the og information and checked with the linter and it all goes through fine. So why does it choose to pick a random image?

I use the facebook api for PHP to send:

<?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

5 回答 5

5

I had the same issue.

Go to Facebook Object Debugger, verify every issue pointed there, fix them all. This solved my problem.

http://goo.gl/ASBsAa

于 2013-09-21T10:50:15.443 回答
2

Testing your query with the facebook Graph API Explorer worked fine for me. You could try to add the additional parameter 'picture' to your post and place the link to your image in it.

So facebook is forced to use this as image in the 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')
    );
于 2013-09-27T09:22:06.263 回答
1

Reading through all the comments here, I think what's happened is the following. Let me know how close I got. This is a shot in the dark. ;)

The first time you shared a URL to Facebook, the og:image wasn't set up perfectly, and Facebook selected a random image on the page, and cached it.

You then fixed the og:image tag, and tried to check the same URL.. FB then regurgitated the cached image.

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

:{D

于 2013-09-27T08:46:29.583 回答
0

Just be patient. Facebook needs some time to crawl this image. It will not immediately show up in Facebook. If your image is not showing up in some days, just drop a note here.

于 2013-09-20T14:35:44.473 回答
0

Much testing and trying other bulk uploaders etc. Finally just decided to email facebook with details and screnshot. next day the issue has been resolved. So, make sure to try that from the help email through your facebook account. worked for me.

于 2013-09-27T17:20:30.870 回答