Facebook.streamPublish does not write on wall...why?
- by dataflash
$titleData = json_encode(array(
'gname' = $giftName,
'url' = $appCanvasUrl,
));
$bodyTemplate = 'One gift to {actor}!';
$bodyData = json_encode(array(
'url' = $appCanvasUrl,
));
$bodyGeneral = '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!