Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Invalid
    • Affects Version/s: Release 5.2.2
    • Fix Version/s: None
    • Component/s: iOS
    • Labels:
    • Environment:

      Using newest stable Appcelerator Studio and SDK's.

      Description

      Facebook login is not working on latest SDK.
      Testing Environment:
      Titanium SDK: 5.2.2.GA
      Appcelerator Command-Line Interface, version 5.2.2
      Facebook module version: 5.0.1
      Testing device: iPod 5G(9.2)

      Testing Code:

      var fb = require('facebook');
      var win = Ti.UI.createWindow({
      	title : 'Login/Logout',
      	backgroundColor : '#fff',
       
      });
      var label = Ti.UI.createLabel({
      	text : 'Logged In = ' + fb.loggedIn,
      	color : '#000',
      	font : {
      		fontSize : 20
      	},
      	top : 10,
      	textAlign : 'center'
      });
      win.add(label);
      fb.addEventListener('login', function(e) {
      	if (e.success) {
      		alert('login from uid: ' + e.uid + ', name: ' + JSON.parse(e.data).name);
      		label.text = 'Logged In = ' + fb.loggedIn;
      	} else if (e.cancelled) {
      		// user cancelled
      		alert('cancelled');
      	} else {
      		alert(e.error);
      	}
      });
      fb.authorize();
      fb.addEventListener('logout', function(e) {
      	alert('logged out');
      	label.text = 'Logged In = ' + fb.loggedIn;
      });
      var loginButton = fb.createLoginButton({
      	readPermissions : ['email'],
      	top : 100,
      	width : 150,
      	height : 100
      });
       
      win.add(loginButton);
      win.open();
      

      Testing Result:
      Facebook login not working and login dialog not appear for IOS.

        Attachments

          Activity

            People

            • Assignee:
              cng Chee Kiat Ng (Inactive)
              Reporter:
              mrahman Mostafizur Rahman
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration