English 中文(简体)
Face Javascript FB.api——停靠不错
原标题:Facebook Javascript FB.api - callback not called on error

I ve a problem with FB.api

我呼吁按照以下方针开展一项活动:

 FB.api( /me/events ,  post , {
    access_token: $( #access_token ).attr( value ),
    name: td.find( #event_name ).attr( value ),
    description: td.find( #description ).attr( value ),
    start_time: td.find( #event_start ).attr( value ),
    end_time: td.find( #event_end ).attr( value ),
    street: td.find( #venue_street ).attr( value ),
    city: td.find( #venue_city ).attr( value ),
    country: td.find( #venue_country ).attr( value )
    }, function(response){
        console.log(response);
});

在城市是非城市之前,它会进行罚款;从那时起,追捕职能从未被召唤。

如果我审查美国宇宙航空研究开发机构利用消防小组提出的要求,我就看到以下答复:

FB.ApiServer._callbacks.f37cab142051f02({
    "error": {
      "type": "Exception",
      "message": "(#151) Unknown city"
    }
}); 

The docs seem to show that I m doing it right: http://developers.facebook.com/docs/reference/javascript/FB.api

谁为什么要打退功能,以及我如何赶上错误?

问题回答

To answer why the callback doesn t get called: The appropriate callback is being executed for me in Chrome, but not Firefox, so I think it has to do with the way the callbacks are handled for an HTTP 500 response in some browsers.

你也看到,如果你以人工方式在 Java的Script文中作出这一反应,就应当妥善处理这一错误。

不过,我不知道如何开展工作,但怀疑需要更新贾瓦文。





相关问题
Facebook Connect login dialog not working

I am using Facebook Connect for iPhone and following the official instructions. I use the following code to display the login dialog: FBLoginDialog* dialog = [[[FBLoginDialog alloc] initWithSession:...

Facebook App Profile Tab is Empty ... No Content Displayed?

I can view my application via the http://apps.facebook.com/myapplication/ link and the content shows up correctly. I also added the application as a tab to a facebook page. However, when viewing the ...

Facebook Platform error: "Object cannot be liked"

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

how to call showPermissionsDialog() in php (facebook api)?

I was reading over the documentation yet I could not figure out how to call Facebook.showPermissionsDialog() in php include_once ./facebook-platform/php/facebook.php ; $facebook = new Facebook(my ...

Facebook connect

If I plug in the facebook connect into my website, How can I prevent double signups? Lets say I have a user that s already signed up to my site but he clicked the connect with facebook, is there a ...

热门标签