File tree Expand file tree Collapse file tree 4 files changed +36
-6
lines changed Expand file tree Collapse file tree 4 files changed +36
-6
lines changed Original file line number Diff line number Diff line change 5
5
and provide your value here.
6
6
-->
7
7
<string name =" facebook_application_id" translatable =" false" >CHANGE-ME</string >
8
+
9
+ <!--
10
+ Facebook Application ID, prefixed by 'fb'. Enables Chrome Custom tabs.
11
+ -->
12
+ <string name =" facebook_login_protocol_scheme" translatable =" false" >fbYOUR_APP_ID</string >
8
13
</resources >
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ dependencies {
24
24
testCompile ' org.mockito:mockito-core:1.10.19'
25
25
testCompile " org.robolectric:robolectric:3.1-rc1"
26
26
compile " com.android.support:appcompat-v7:${ project.ext.support_library_version} "
27
- compile ' com.facebook.android:facebook-android-sdk:4.11.0 '
27
+ compile ' com.facebook.android:facebook-android-sdk:4.14.1 '
28
28
compile " com.android.support:design:${ project.ext.support_library_version} "
29
29
30
30
compile " com.google.firebase:firebase-auth:${ project.ext.firebase_version} "
Original file line number Diff line number Diff line change 1
1
<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
2
+ xmlns : tools =" http://schemas.android.com/tools"
2
3
package =" com.firebase.ui.auth" >
3
4
4
5
<application >
32
33
<activity android : theme =" @style/FirebaseUI.Translucent"
33
34
android : name =" .ui.ChooseAccountActivity" >
34
35
</activity >
35
- <activity android : theme =" @style/FirebaseUI.Translucent"
36
- android : name =" com.facebook.FacebookActivity"
37
- android : configChanges =
38
- " keyboard|keyboardHidden|screenLayout|screenSize|orientation"
39
- android : label =" @string/app_name" />
36
+
37
+ <activity
38
+ android : name =" com.facebook.FacebookActivity"
39
+ android : configChanges =" keyboard|keyboardHidden|screenLayout|screenSize|orientation"
40
+ android : label =" @string/app_name"
41
+ android : theme =" @style/FirebaseUI.Translucent"
42
+ tools : replace =" android:theme" />
43
+
44
+ <activity
45
+ android : name =" com.facebook.CustomTabActivity"
46
+ android : exported =" true" >
47
+ <intent-filter >
48
+ <action android : name =" android.intent.action.VIEW" />
49
+ <category android : name =" android.intent.category.DEFAULT" />
50
+ <category android : name =" android.intent.category.BROWSABLE" />
51
+ <data android : scheme =" @string/facebook_login_protocol_scheme" />
52
+ </intent-filter >
53
+ </activity >
54
+
40
55
</application >
41
56
</manifest >
Original file line number Diff line number Diff line change 9
9
-->
10
10
<string name =" facebook_application_id" translatable =" false" >CHANGE-ME</string >
11
11
12
+ <!--
13
+ To enable Chrome Custom Tabs for Facebook Login on devices without the Facebook app
14
+ installed, change this value to your Facebook App ID prefixed with 'fb'. This should be
15
+ 'fb' + the value of the facebook_application_id string above
16
+
17
+ See:
18
+ https://developers.facebook.com/docs/facebook-login/android#chrome_custom_tabs
19
+ -->
20
+ <string name =" facebook_login_protocol_scheme" translatable =" false" >fbYOUR_APP_ID</string >
21
+
12
22
13
23
<!--
14
24
The facebook permissions that this Android Application will request from the
You can’t perform that action at this time.
0 commit comments