1

I'm trying to create my own actions/objects. When checking with the debugger everything is fine, but when testing with my dev account I get this in my callback:

{"data":[]}

Is it good or not because I see anything in my timeline, news feed or ticker.

When testing with a test user I get this error:

{
"error": {
    "message": "Call to a member function on a non-object",
    "type":"BadMethodCallException"
    }
}

What's wrong?

4

1 回答 1

1

您应该向POSTfacebook api 发出如下请求,并确保您已初始化 FB:

var opts = {
                animal : OBJECT_URL,
                access_token: token
            };

            FB.api('/me/[MY_APP_NAMESPACE]:hunt', 'post', opts, function(response)
            {

            });
于 2012-10-16T19:04:52.377 回答