I have an app that publishes a text and a picture on facebook, it was working fine last week, today throws this error:
invalid scopes publish_stream. this message is only shown to developers. Users of your app will ignore these permission if present
someone know you can be, it will have to do with the change that took place on April 30, the V1 to V2.
Attached code to take an example
function conectarConFacebook() {
var data = {
message: "texto",
picture: anImageView.image
};
var fb = require('facebook');
fb.appid = Titanium.Locale.getString('facebook_app_id');
fb.permissions = ['publish_stream'];
fb.forceDialogAuth = true;
if (fb.loggedIn) {
// Now create the status message after you've confirmed that authorize() succeeded
fb.requestWithGraphPath('me/photos', data, "POST", function(e){
if (e.success) {
alert("Exito");
} else {
if (e.error) {
alert(e.error);
} else {
alert("error");
}
}
});
fb.authorize();
}
else {
fb.addEventListener('login', function(e) {
if (e.success) {
//alert('Logged in');
// Now create the status message after you've confirmed that authorize() succeeded
fb.requestWithGraphPath('me/photos', data, "POST", function(e){
if (e.success) {
alert("Exito! informacion posteada en FB");
} else {
if (e.error) {
alert(e.error);
} else {
alert("No se pudo postear, resultado desconocido");
}
}
});
}
});
//llamamos el metodo para autorizar el login
fb.authorize();
}
}