2

appcelerator の Titanium studio で iPhone アプリを開発しています。私のアプリは Facebook モジュールを使用しています。フィードの読み取りとフィードの公開の権限があり、適切に承認されますが、ユーザーのフィードに何かを公開しようとしたり、フィードを読み取ろうとすると、95% の確率で「errDomain エラー 10000」というエラーが表示されます。 2 日ごとに正しく機能するので、リクエストが有効であることがわかります。この問題の解決策が見つかりません。ログアウトを試みましたが、再度ログインしてもうまくいきません:(

これは私のコードです:

Titanium.Facebook.requestWithGraphPath('me/feed', {message: "Trying out FB Graph API and it's NOT fun at all!"}, "POST", function(e) {
if (e.success) 
{
    alert("Success!  From FB: " + e.result);
} 
else 
{
    if (e.error) 
    {
        alert(e.error);
    } 
    else 
    {
        alert("Unkown result");
    }
}
});
4

1 に答える 1

0

Titanium.Facebook非推奨です こちらをご覧ください

http://docs.appcelerator.com/titanium/3.0/#!/api/Modules.Facebook

有効なアクセストークンを使用してグラフパスへのアクセスを試みます

fb.requestWithGraphPath('me/feed?access_token=YOUR_APP_ACCESS_TOKEN' , {message: "your message"}, 'POST', if (e.success) 
{
    alert("Success!  From FB: " + e.result);
} 
else 
{
    if (e.error) 
    {
        alert(e.error);
    } 
    else 
    {
        alert("Unkown result");
    }
}
});
于 2013-08-16T08:40:56.403 に答える