我使用命中和试验方法解决了它。
$attachment = array(
'message' => $d['giftmsg'],
'name' => 'You have recived a gift voucher for a '.$dd['title'].'!' .'',
'link'=>'https://thevoucherlink.com/redirect.php',
'description' => " Please click on the link to claim your gift card. Do it soon! This promotional card is valid for a limited time.. <center> </center> The Voucher Link allows facebook users send gift vouchers from local businesses to their friends",
'picture' => $im,
'actions'=>array('name'=>'Get Voucher','link'=>'https://thevoucherlink.com/redirect.php')
);
try {
$t= $facebook->api('/' . $_POST['friend_id']. '/feed', 'POST', $attachment);
} catch (Exception $exc) {
$err= $exc->getTraceAsString();
}
您可以在帖子上使用这些参数发布相同的帖子。
谢谢您的回答..