Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-13738

Android: Facebook Module's e.cancelled state not working anymore

    Details

      Description

      Problem description
      e.cancelled in the facebook login event which was fired when the close button of the facebook authorize dialogue was clicked is not working any more in the new facebook module in the 3.1.0 Titanium SDK.

      Test case

      var win = Ti.UI.createWindow({
      	backgroundColor : "#FFF"
      });
       
      var fb = require('facebook');
      fb.appid = FACEBOOK_APP_ID; // appid goes here
       
      fb.addEventListener('login', facebook_connect);
       
      function facebook_connect(e) {
      	if (e.success) {
      		alert("Login Success!");
      	} else if (e.error) {
      		alert("Something went wrong");
      	} else if (e.cancelled) {
      		alert("Close button clicked"); // Not working anymore
      	}
      }
       
      win.add(fb.createLoginButton({
      	top : 50,
      	style : fb.BUTTON_STYLE_WIDE
      }));
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              pwang Ping Wang
              Reporter:
              neyyanraju Raju Neyyan
              Reviewer:
              Hieu Pham
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-16389
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration