I m working on a Facebook Application that generates wall posts. In testing these posts, I ve discovered that the Facebook Platform action of "liking" a post is failing. The specific error message is
Object cannot be liked
Unable to like this object because it is not accessible (it may have been removed or you may no longer have permission to see it).
Neither of the conditions suggested in the error are actually true.
- Googling for the error returns zero results(!) (EDIT! Now returns a result - this question)
- Searching the Facebook bug repository returns zero results. (EDIT! Returns one result now because I reported this bug)
- Searching the Facebook community forums yields two posts neither of which address this specific issue.
These wall-to-wall posts are generated via stream.publish using their PHP library. Here s a sample of the API call from my production code
$this->facebook->api_client->stream_publish(
, array(
name => Sample Wall Post
, description => Just a test description
, media => array(
FbAppHelper::imageAttachment( path/to/image.gif , http://apps.facebook.com/ . FB_CANVAS_URI )
)
)
, null
, $facebookId
);
Any clues?