Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 5.4.0, Release 5.5.0
    • Fix Version/s: Release 5.5.0
    • Component/s: iOS
    • Environment:

      Titanium 5.5.0.v20160831100821
      also tested on 5.4.0.GA

      Mac OS X 10.11.6

      Xcode 8 GM

      Tested on Device running iOS 10.0.1 GM and on Simulator 10.0 (XCode 8 GM)

    • Story Points:
      13
    • Sprint:
      2016 Sprint 19 SDK

      Description

      Facebook login using the latest FB Modules is not working anymore on devices running iOS 10.

      We have catch this behavior on our production published app running the Facebook Module (5.2.0) and Ti SDK 5.3.0.

      We have tested this behavior on Ti SDK 5.2.0.GA up to 5.5.0 RC and all present the same behavior.

      Steps to Reproduce

      • Use a button for Facebook login (using the fb.authorize method).
      • The button opens the SafariView with the Facebook App Authorization site.
      • Tap OK button.
      • The SafariView gets a blank page and doesn't get dismissed.
      • If you tap the DONE button, the view is dismissed but the is not logged in.

      Expected
      Normal FB login flow where you tap the OK button on the SafariViewController opened by the Facebook module, the SafariViewController gets dismissed, the login event is fired with the user logged in.

      Follows a very simple app using the Facebook Module displaying this issue.

      var fb = require("facebook");
       
      // Facebook Stuff
      fb.initialize();
       
       
      var win = Ti.UI.createWindow();
       
      var fbloginbutton = Ti.UI.createButton({
          title: "Login with Facebook"
      });
       
      fbloginbutton.addEventListener("click", function() {
          fb.authorize();
      });
       
      win.add(fbloginbutton);
       
      var lbl = Ti.UI.createLabel({
          color: "red",
          text: fb.loggedIn
      });
       
       
       
       
       
      win.add(lbl);
       
      fb.addEventListener("login", function() {
          console.log("fb-event-login: " + fb.loggedIn);
          console.log("accessToken: " + fb.accessToken);
          console.log("fbuid: " + fb.uid);
          
          lbl.setText(fb.loggedIn);
      });
       
      fb.addEventListener("logout", function() {
          console.log("fb-event-logout: " + fb.loggedIn);
          console.log("accessToken: " + fb.accessToken);
          
          lbl.setText(fb.loggedIn);
          
      });
       
       
      console.log("fb-boot-status: " + fb.loggedIn);
      console.log("fb-boot-accessToken: " + fb.accessToken);
       
       
      win.open();
      
      

      Please remember to setup the proper Facebook App ID parameters on tiapp.xml on the iOS section together with LSApplicationQueriesSchemes and NSAppTransportSecurity as per Facebook Ti module instructions.

      This is critical since iOS 10 final is to be released next week and this completely breaks Facebook login.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hknoechel Hans Knöchel
                Reporter:
                ygbr Ygor Lemos
                Reviewer:
                Chee Kiat Ng (Inactive)
                Tester:
                Harry Bryant
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration