Publish Facebook with link parameter on first try

I am trying to post to Facebook using the Graph API, and one of the parameters on it is the link.

Example URL:

https://graph.facebook.com/me/feed?access_token=Xxxx&message=&link=http://something/token/123456B&description=test

Each time the link changes the sending, the first time it crashes. If I repeat twice or thrice, the call works.

Here is the error I get:

{"error": {"message": "Call the member function getImageInfo () for a non-object", "type": "BadMethodCallException"}}

This worked fine, but suddenly stopped working 2 days ago. The link always changes for us and is such that it breaks all the messages.

Has anything changed with the API recently from Facebook? Any help would be greatly appreciated

+7
source share
5 answers

Well, I fixed ... I think ... in the URL link is a meta image: it cannot be empty like ", and the link must be absolute. If the link has no image, do not put the meta. By the way, I'm updating the application on the fb application bar until February 2013. " Breaking changes "to activate.

+1
source

I have the same problem in iOS development, response from server:

"com.facebook.sdk:HTTPStatusCode" = 500; "com.facebook.sdk:ParsedJSONResponseKey" = { body = { error = { message = "Call to a member function getImageInfo() on a non-object"; type = BadMethodCallException; }; }; code = 500; }; 

How can it help? :)

0
source

I had the same problem and managed to fix it. There was a problem with the og: image element in the page header of the URL. My image link was relative to the website, but I changed it to absolute, and now everything works.

 <meta property="og:image" content="{should be absolute url here}" /> 
0
source

It seems today up and down. Sometimes this is normal, but most of the time it does not work.

0
source

This is apparently the problem with the error message on the Facebook server. You should think about this error message and behavior. Facebook Developer Error Reporting System

0
source

All Articles