Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

The operation couldn’t be completed. (com.facebook.sdk error 5.)

$
0
0

I have a problem when created a new app in facebook and use it for sharing in Titanium with the Facebook Module , i get this error :

Error: HTTP status code: 403
[ERROR] :  FB: The operation couldn’t be completed. (com.facebook.sdk error 5.)
So if i used my old (other) appid with the same code and and the same config in facebook apps section it works fine.

my code is :

var fb = require('facebook');
fb.appid = "XXXXXXXXXXXXXXX";
fb.permissions = ['publish_stream', 'read_stream'];
 
if(!fb.loggedIn) {
    fb.authorize();
} 
 
var data = {
    message: messageToShare,
    picture: blobImageToShare
};
 
fb.requestWithGraphPath('me/photos', data, "POST", function(e){
    if (e.success) {
        Ti.API.info("FB: Success! Shared to FB: " + e.result);
    } 
    else {
        if (e.error) {
           Ti.API.error('FB: '+ e.error);
        } 
        else {
            Ti.API.error("FB: Unkown result sharing");
        }
    }
});
1. Application type: mobile - Titanium SDK : 3.3.0 - I'm used Titanium 3.3.0 and 3.3.0 - Platform & version : iOS >=6 - Device: iOS simulator, iPhone 4 & 5

any solution for this problem ?


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>