[MOD-2287] Ti.Facebook: Add missing LoginButton properties (iOS / Android)
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-10-27T07:38:36.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 6.1.0 |
Components | |
Labels | facebook, parity, tooltipbehavior, tooltipcolorstyle |
Reporter | Hans Knöchel |
Assignee | Hans Knöchel |
Created | 2016-08-27T13:05:58.000+0000 |
Updated | 2017-05-23T18:59:24.000+0000 |
Description
We have a number of properties and constants that are not available in Ti.Facebook, yet. We should expose them for both iOS and Android to have full parity-coverage as well.Comments
- Hans Knöchel 2016-08-27
PR: https://github.com/appcelerator-modules/ti.facebook/pull/62
Demo:
var fb = require("facebook"); var win = Ti.UI.createWindow({ backgroundColor: "#fff" }); win.add(fb.createLoginButton({ readPermissions: ["email"], tooltipColorStyle: fb. LOGIN_BUTTON_TOOLTIP_STYLE_NEUTRAL_GRAY, tooltipBehavior: fb. LOGIN_BUTTON_TOOLTIP_BEHAVIOR_FORCE_DISPLAY })); win.open();
- Hans Knöchel 2016-08-28 Please note: Currently, the fix-version is for 7.0.0, but I solved the android-part sooner then expected, so we may put it into 6.1.0 already. But do a FT first.
- Hans Knöchel 2016-09-02 Changing reviewer to [~gmathews] for the Android-side.
- Chee Kiat Ng 2016-10-26
- Chee Kiat Ng 2016-10-27 Just checked Jenkins and it's working good now.
- Abir Mukherjee 2017-05-23 Node Version: 6.10.1 NPM Version: 3.10.10 Mac OS: 10.12.4 Appc CLI: 6.2.0 Appc CLI NPM: 4.2.9 Titanium SDK version: 6.1.0.v20170517143931 Appcelerator Studio, build: 4.8.1.201612050850 Xcode 8.3.2 iOS Device: 10.3 Android Device: 7.1 I tested this using the above environment, and tested on both iOS and Android devices. After the app launched, I clicked on the button to login into Facebook, and I was directed to the Facebook login page.