Im trying to use publish_actions in Titanium for my app, but Im getting the "sdk facebook error 5". I saw that Facebook recently changed this permission and now you have to submit the app, screenshot and other things for approval. There is some documentation for using this permission as developers, like the scope attribute, but i ve found none for titanium. Im using my facebook account which is administrator of the app.
This code is currently not working:
fb.permissions = ['publish_actions'];
//I've also used fb.permissions = ['publish_stream'];
fb.authorize();
// ...
// ...
// Now create the status message after you've confirmed that authorize() succeeded
fb.requestWithGraphPath('me/feed', {message: "Trying out FB Graph API and it's fun!"},
"POST", function(e) {
if (e.success) {
alert("Success! From FB: " + e.result);
} else {
if (e.error) {
alert(e.error);
} else {
alert("Unkown result");
}
}
});
Thanks!