[TIMOB-19577] Android: Update Facebook Module to support Facebook SDK 4.7.0
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-11-05T22:42:35.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 5.2.0 |
Components | Android |
Labels | facebook, facebookSDK, notable |
Reporter | Chee Kiat Ng |
Assignee | Ashraf Abu |
Created | 2015-09-25T02:52:39.000+0000 |
Updated | 2018-10-10T16:30:03.000+0000 |
Description
Facebook SDK has been updated to 4.7.0. Have to look at updating our module to support this.
Updated Facebook API to 4.7. Bumped fb titanium module Android to 5.0.0. KitchenSink PR:https://github.com/appcelerator/KitchenSink/pull/80 Facebook PR:https://github.com/appcelerator-modules/ti.facebook/pull/30
Facebook Test User Accounts
||User name||User email|| |David Alajdbbcdajgf Greeneman|yuwagqj_greeneman_1444623211@tfbnw.net| |Barbara Alajeaccejfhc Carrierosky|xpgcjkg_carrierosky_1444623190@tfbnw.net| |Patricia Alajcfcffdcie Lausen|mtfzvmr_lausen_1444623189@tfbnw.net| All passwords are titaniumLion (Thanks to [~cng] for the Testing accounts)Steps to test
1. install facebook Module, you can get it from here if you don't want to build it (https://gist.github.com/ashcoding/4d3eae3877fcb3278ff5/raw/9e59582682bfb44b4b8d255edd5f88258f1bec93/facebook-android-5.0.0.zip) 2. Run it with titanium SDK > 5.0 on KitchenSink (PR above). The KitchenSink tiapp.xml has been configured with a new Facebook app where the test users indicated can be used 3. Test everything in mashups/facebook PR for Titanium SDK master branch will come after this has been reviewed.PR merged and module added to release page in github https://github.com/appcelerator-modules/ti.facebook/releases
master backport: https://github.com/appcelerator/KitchenSink/pull/82
PR https://github.com/appcelerator/KitchenSink/pull/82 was into stable. It was merged. Still requires a PR into master branch. Seems like the default branch for Kitchen Sink is to Stable branch.
Master PR Titanium Mobile (5_2_0): https://github.com/appcelerator/titanium_mobile/pull/7562
Master PR merged.
[~msamah], I get warnings below after I run the
Read Stream
test inKS/Facebook
with the instructions mentioned by [~cng] above:Also, I don't see any results.
Looks like [this line](https://github.com/appcelerator-modules/ti.facebook/blob/master/android/src/facebook/TiFacebookModule.java#L213) needs to be formatted as stated [here](http://stackoverflow.com/a/29324162/5537752) to contain the
fields
key.I'm using KitchenSink stable with https://github.com/appcelerator-modules/ti.facebook/releases/tag/android-5.0.0 that uses Facebook SDK 4.7.0 and do not face that problem.
[~msamah], What I saw: 1. Used KS from the PR in Kiat's comment : https://github.com/appcelerator/KitchenSink/pull/80 with 5.0.0 FB module :https://github.com/appcelerator-modules/ti.facebook/releases/tag/android-5.0.0 --- I see the warnings. 2. Used stable KS : https://github.com/appcelerator/KitchenSink/tree/stable with 5.0.0 FB module : https://github.com/appcelerator-modules/ti.facebook/releases/tag/android-5.0.0--- Ks crashes when clicked on "login with FB". 3. Used master KS : https://github.com/appcelerator/KitchenSink/tree/master with 5.0.0 FB module: https://github.com/appcelerator-modules/ti.facebook/releases/tag/android-5.0.0 --- Ks crashes when clicked on "login with FB". Is there any other version? Can you give me a link for KS version you used ?
[~lchoudhary] Please use stable branch and have this in tiappxml:
PR to update this manifest: https://github.com/appcelerator/KitchenSink/pull/88
PR updated to use
user_managed_groups
Cool [~msamah]
Verified the implementation. Checked by running KS/mashups/facebook tests in KS stable. Closing. Environment: Appc Studio : 4.5.0.201602070910 Ti SDK : 5.2.0.v20160208101502 Ti CLI : 5.0.6 Alloy : 1.7.33 MAC Yosemite : 10.10.5 Appc NPM : 4.2.3-2 Appc CLI : 5.2.0-249 Node: 4.2.2 Nexus 6P - Android 6.0.1