0

我有这个试图从 facebook 获取页面访问令牌。

我正在用 appcelerator 钛做这个。

 Ti.Facebook.requestWithGraphPath(Titanium.App.Properties.getString("sidnamn"), {fields: 'access_token'}, function(resp) {
    if(resp.access_token) {
        Ti.API.info(resp.access_token);

        }   });

当我运行这个我得到这个错误:

message = "函数的参数数量无效。预期 4 个参数,收到:3 in -[FacebookModule requestWithGraphPath:] (FacebookModule.m:440)";

那么我错过了什么?

4

1 回答 1

0
argument one = target
argument two = data
argument three = method (POST/GET)
argument four = callback

我的回答没有解决您的目标或数据的质量,但您的第三个参数不是 POST/GET

于 2013-01-07T00:16:37.680 回答