Cannot post comment with Facebook API

I am trying to post a comment to a stream object using the Facebook API. Here is my code:

$this->facebook->api('/' . $postID . '/comments', 'post', array(
    'message' => 'Hello world!'
));

I have set the publish_stream permission like so:

<fb:login-button scope="email, read_stream, publish_stream"></fb:login-button>

However, the comment is not working. I am getting OAuthException:

(#200) Cannot access object_id: 3427843256389

I have the correct permission, and the correct post ID. I can't work out for the life of me why it won't let me access the object. Any ideas?

Answers


thanks Oliver Joseph Ash for your last comment.. thanks to you i tried and succeeded to add comment to a regular post (not a video or photo yet though..) see my full answer in Post new comment to a Status via API


Need Your Help

How do I use the debugger with mod_perl

perl apache mod-perl

I'm trying to attach the Perl debugger to Apache and mod_perl. Our

Ftp Upload a folder from sdcard to ftp Android

android apache upload ftp

Hi all any java geek can help me? I need to upload a folder with subs folders to my ftp.