【问题标题】:Ti.Facebook.requestWithGraphPath('me/feed'... don't work in SDK 2.1.2Ti.Facebook.requestWithGraphPath('me/feed'... 不适用于 SDK 2.1.2
【发布时间】:2012-09-01 13:24:06
【问题描述】:

我在 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;

}

【问题讨论】:

  • 您没有提供足够的信息。请提供data 对象和e(错误对象)转储。

标签: facebook titanium titanium-mobile


【解决方案1】:

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

【讨论】:

  • 我认为您需要在 facebook 应用设置中指定该域 (spllite.com)
猜你喜欢
  • 1970-01-01
  • 2023-03-12
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-01-06
相关资源
最近更新 更多