简体   繁体   中英

Facebook development - post link with photo

I'm building an app for facebook. I need to post some link, standard code works correctly:

$ret_obj = $facebook->api('/me/feed', 'POST',
    array(
      'link' => 'Mylink',
      'message' => 'Posting with the PHP SDK!',

But I need to attach the photo also. It works if photo is on the link I post, but I don't want that photo to appear on that page.

Is there any way?

Simply add a parameter, picture to while making the call-

 array(
   'link' => 'Mylink',
   'message' => 'Posting with the PHP SDK!',
   'picture' => '{image-link}'

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