$titleData = json_encode(array(
'gname' => $giftName,
'url' => $appCanvasUrl,
));
$bodyTemplate = '<a href="{url}">One gift</a> to {actor}!';
$bodyData = json_encode(array(
'url' => $appCanvasUrl,
));
$bodyGeneral = '<BR>Send the exclusive gifts to all your friends!';
$imgSrc = $appcallbackurl.'gifts/'.$giftImage;
$imgLink = $appCanvasUrl;
$target_ids = $friends[0];
Facebook.streamPublish($titleTemplate, $titleData, $bodyTemplate, $bodyData, $bodyGeneral, $imgSrc, $imgLink, '', $target_ids);
What am i doing wrong?I get the 500 error when i try to write on wall, i have permision, to post on wall, as i ask for it!Is there another way to use Facebook.streamPublish? tx a lot! I have a fbml app!