张贴在Facebook墙上的图片

时间:2012-02-07 19:56:24

标签: php javascript jquery facebook facebook-graph-api

我可以在消息内的某些墙上发布图片的限制吗?

当我使用此代码时:

if (isset($_GET['publish'])){
        try {
            $publishStream = $facebook->api("/$user/feed", 'post', array(
                'message' => "I love thinkdiff.net for facebook app development tutorials. <img src="http://c3354688.r88.cf0.rackcdn.com/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley"> ",
                'link'    => 'http://ithinkdiff.net',
                'picture' => 'http://thinkdiff.net/ithinkdiff.png',
                'name'    => 'iOS Apps & Games',
                'description'=> 'Checkout iOS apps and games from iThinkdiff.net. I found some of them are just awesome!'
                )
            );
            //as $_GET['publish'] is set so remove it by redirecting user to the base url
        } catch (FacebookApiException $e) {
            d($e);
        }
    }

一切正常但如果我将图片更改为不同的网址,尽管图片可用,但仍然会显示照片。

有什么建议吗?

1 个答案:

答案 0 :(得分:1)

您是否尝试过http://developers.facebook.com/tools/lint/ 在域上,看看会回来什么? 也许你需要清除FB的缓存。