I am trying to post a status message comment on facebook. I figured out how to βlikeβ existing comments using the following code:
$ status = $ facebook-> api ("/ $ id / likes", 'post');
How can I change the code to post a comment on this status message, not how.
I tried this: $ status = $ facebook-> api ("/ $ id / stream", 'post', "$ comment");
but it returns this error: Invalid argument for foreach ()
I also used "/ $ id / comments" instead of "/ $ id / stream", the same error.
source share