简体   繁体   中英

posting on facebook wall with picture

Are there any restrictions of pictures that I can post on someones wall inside message?

When I use this code:

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);
        }
    }

Everything works fine but if I change picture to different URL photo ist presented despite the fact that picture is available.

Any suggestions ?

Have you tried to run http://developers.facebook.com/tools/lint/ on the domain and see what comes back ? Maybe you need to clear FB's cache.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM