Titanium JIRA Archive
Appcelerator Modules (MOD)

[MOD-2242] Ti.Facebook: Support loginBehavior setting

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2016-04-26T08:07:58.000+0000
Affected Version/sn/a
Fix Version/sRelease 5.4.0
ComponentsFacebook
Labelsandroid, facebook, ios, qe-5.4.0
ReporterHans Knöchel
AssigneeHans Knöchel
Created2016-04-15T10:15:02.000+0000
Updated2016-07-11T18:30:44.000+0000

Description

We should have the ability to change the login behavior (iOS and Android), some people currently get confused by the (default) browser login.

Comments

  1. Hans Knöchel 2016-04-15

    Community PR: https://github.com/appcelerator-modules/ti.facebook/pull/46
  2. Hans Knöchel 2016-04-20

    PR to update docs and iOS default value because of [this issue](https://developers.facebook.com/bugs/786729821439894/?search_id): https://github.com/appcelerator-modules/ti.facebook/pull/51 Test steps:
       var win = Ti.UI.createWindow({
         backgroundColor : "#fff"
       }); 
       var btn = Ti.UI.createButton({
         title : "Login with Facebook"
       });
       var fb = require('facebook');
       fb.initialize();
       
       fb.addEventListener("login", function(e) {
           Ti.API.warn(e);
           if(e.success == false || e.cancelled) {
               return;
           }
           alert("loggedin");
       })
       
       btn.addEventListener("click", function() {    
           fb.permissions = ['email'];
           fb.authorize();
       });
       
       win.add(btn);
       win.open();
       
    Run the project on iOS and Android using the latest Ti.Facebook versions (iOS: 5.2.0, Android: 5.1.0) with both Facebook-app installed and not installed. Not installed: App should open a web dialog to login Installed: App should open the app on Android and web dialog on iOS (currently restricted by Facebook)
  3. Chee Kiat Ng 2016-04-25

    [~hansknoechel] remember to create a titanium_mobile PR with this new packaged Facebook module.
  4. Hans Knöchel 2016-04-25

    I have [some more features](https://github.com/appcelerator-modules/ti.facebook/milestones/ios-5.2.0,%20android-5.1.0) I want to include in that release before. Trying to have all reviewed this week.
  5. Harry Bryant 2016-07-11

    Verified fixed, tested both cases: *iOS* Facebook App Not Installed: Login page opened through web dialog. Facebook App Installed: Login page opened through web dialog (currently restricted by Facebook). *Android* Facebook App Not Installed: Login page opened through web dialog. Facebook App Installed: Login page opened through Facebook App. Tested On: iPhone 6S (9.3.2) Device Google Nexus 6P (6.0.1) Facebook Module 5.2.0 (Android & iOS) Mac OSX El Capitan 10.11.5 Ti SDK: 5.4.0.v20160705213725 Appc Studio: 4.7.0.201607111053 Appc NPM: 4.2.8-1 App CLI: 5.4.0-29 Xcode 7.3 Node v4.4.7 *Closing ticket.*

JSON Source