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

the app is not authorized to publish on facebook

$
0
0
I have a facebook app published in image and text, but now when I try to log says that the app does not have permission to publish this is the code: 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(); } } try to use the function fb.reauthorize(), but it says that there is no method. Any ideas?

Viewing all articles
Browse latest Browse all 8068

Trending Articles



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