#296 需要扩展权限:create_event 在钛中创建 fb 事件时

#296 Requires extended permissions: create_event while creating fb event in titanium

我想做的就是在我基于钛的 android 应用程序中创建一个事件。这段代码有什么问题?在设置权限之前,facebook 端是否有任何更改需要检查?我总是最终收到警报,因为 '#296 需要扩展权限:create_event' 找不到与我的错误代码相关的任何内容。

createEvent.addEventListener('click', function() {

    var fb = require('facebook');
    fb.appid = "2007090666xxxxx";
    fb.permissions = ['publish_stream', 'read_stream', 'create_event'];
    if (!fb.loggedIn) {
        fb.authorize();
    } else {
        //showAI(L("createFbEvent"));
        var postResult = function(e) {
            var s = '';
            if (e.success) {
                //hideAI();
                s = L("eventSuccess");

                if (!e.result && !e.data) {
                    //hideAI();
                    s = L("reqCancelled");
                }
            } else if (e.cancelled) {
                //hideAI();
                s = L("reqFailTry");
            } else {
                //hideAI();
                s = "reqFail";
                if (e.error) {
                    s += "; " + e.error;
                }
            }
            openAlert("Facebook", s);
            win.close();
        };

        var f = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, 'logo.png');
        var blob = f.read();
        var data = {
            name : nameField.value,
            description : descField.value,
            start_time : userRows.fieldByName('fbStart'),
            end_time : userRows.fieldByName('fbEnd'),
            picture : blob,
            location : "GLand"
        };
        fb.requestWithGraphPath('me/events', data, 'POST', postResult);
    }
});

正如@Cbroe 所说,create_event 权限随着 Graph API v2.0 的引入而被弃用:

create_event is no longer available.