English 中文(简体)
Facebook Platform error: "Object cannot be liked"
原标题:
  • 时间:2009-11-11 18:34:24
  •  标签:
  • php
  • facebook

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?

最佳回答

This bug for this issue has been closed. No longer occurs

http://bugs.developers.facebook.net/show_bug.cgi?id=7540

问题回答

Hey, I know this doesn t help you, but I encountered a object which can t be "liked" too. I got the same error message, and I think the "object" was generated within Facebook itself (not through a third party app). It s something someone posted to my wall.

No clue why, but it just happens on that one message and it gives me the same error message you see. Hope you found a solution.

This happens to me, too, consistently for all the photos of one of my FB friends, when I click on "Like."

[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).

[Okay]

I also get a similar message when I try to add a comment:

[No Permission to Add Comment or Trying to Comment on Deleted Post]

Sorry you may not have permission to add this comment or the original post may have been deleted.

[Okay]





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签