Öncelikle bir TemplateBundle oluşturmalısın. (
Buradan)
Daha sonra oluşturduğun bu TemplateBundle ID numarası verilecek sana atıyorum 123456 olsun. Aşağıdaki kodlarla o Bundle profile gönderilir.
//You get this id when you call registerTemplateBundle
$template_bundle_id = 123456;
$tokens = array(
'album'=>'The White Album',
'artist'=>'The Beatles',
'images'=>array(array('src'=>'http://example.com/WhiteAlbum.jpg', 'href'=>'http://example.com/WhiteAlbum.htm'))
);
//There is no target for the story in this example, but if there was,
//$target_ids would be an array of user IDs
$target_ids = array();
$body_general = '';
$facebook->api_client->feed_publishUserAction($template_bundle_id, $tokens , implode(',', $target_ids), $body_general);Kodlar Facebook Developers Wiki içersinden alınmıştır.