Facebook.streamPublish does not write on wall...why?

Posted by dataflash on Stack Overflow See other posts from Stack Overflow or by dataflash
Published on 2010-05-25T15:28:11Z Indexed on 2010/05/25 15:31 UTC
Read the original article Hit count: 313

Filed under:
|
|
|

$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!

© Stack Overflow or respective owner

Related posts about php

Related posts about facebook