Im разрабатывает кнопку «share on facebook».Titanium Facebook Dialog не отображается
Но есть проблема, диалог пользователя не запрашивается пользователю.
Я попытался сэмпл титана обеспечивают:
function facebook(){
var fb = require('facebook');
var data = {
link : "http://www.appcelerator.com",
name : "Appcelerator Titanium Mobile",
message : "Checkout this cool open source project for creating apps",
caption : "Appcelerator Titanium Mobile",
picture : "http://developer.appcelerator.com/assets/img/DEV_titmobile_image.png",
description : "You've got the ideas, now you've got the power."
};
fb.dialog("feed", data, function(e) {
var toast = Ti.UI.createNotification({
message:"Default",
duration: Ti.UI.NOTIFICATION_DURATION_LONG
});
if(e.success && e.result)
toast.message = "Success! New Post ID: " + e.result;
else {
if(e.error)
toast.message = e.error;
else
toast.message = "User canceled dialog.";
}
toast.show();
});
}
Функция называется правильно, но ничего не появляется.
Кто-то знает почему? Может быть, разрешения? Но я прочитал, что для диалога не требуются разрешения!
спасибо всем