Ti.Facebook.requestWithGraphPath('me / feed'...在SDK 2.1.2中不起作用

时间:2012-09-01 13:24:06

标签: facebook titanium titanium-mobile

我在SDK 2.0.1.GA2和SDK 2.1.2.GA中成功运行上面的代码启动错误(操作无法完成。(facebookErrDomain错误10000。))

var data = {
        message : 'Venha você também conhecer o Spllite.', 
        link : 'http://facebook.com/spllite', 
        name : 'Spllite', 
        privacy : {
            value : 'CUSTOM', 
            friends : 'SELF'
        }
    };}

Ti.Facebook.requestWithGraphPath('me/feed', data, 'POST', function(e) {
        if (e.success) {
            alert('Post enviado com sucesso');
        } else if (e.error) { // Error HERE
            Ti.API.debug('SendAdPost: '+ e.error);
            alert('Facebook indisponível no momento. Tente mais tarde.');
        } else {
            Ti.API.debug('SendAdPost: Sem resposta');
            alert('Facebook indisponível no momento. Tente mais tarde.');
        }
    });

Ti.API.debug(e.error);

[DEBUG] The operation couldn’t be completed. (facebookErrDomain error 10000.)

对象返回

{

error = "The operation couldn\U2019t be completed. (facebookErrDomain error 10000.)";

graph = 1;

path = "me/feed";

source = "[object FacebookModule]";

success = 0;

type = result;

}

1 个答案:

答案 0 :(得分:0)

查询URI以及查询参数都是好的。导致问题的原因与您引用的实际link有关。可能是因为http://facebook.com/spllite页面未公开。