File tree 2 files changed +20
-1
lines changed
java/com/firebase/ui/auth/provider
2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -77,8 +77,11 @@ public void startLogin(Activity activity) {
77
77
mCallbackManager = CallbackManager .Factory .create ();
78
78
LoginManager loginManager = LoginManager .getInstance ();
79
79
loginManager .registerCallback (mCallbackManager , this );
80
+
81
+ String [] permissions = activity .getResources ().getStringArray (R .array .facebook_permissions );
82
+
80
83
loginManager .logInWithReadPermissions (
81
- activity , Arrays .asList ("public_profile" , "email" ));
84
+ activity , Arrays .asList (permissions ));
82
85
}
83
86
84
87
@ Override
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
+ <!--
14
+ The facebook permissions that this Android Application will request from the
15
+ user. Users of FirebaseUI auth can add additional items with the additional
16
+ permissions they want to request.
17
+
18
+ See:
19
+ https://developers.facebook.com/docs/facebook-login/android
20
+ https://developers.facebook.com/docs/facebook-login/permissions
21
+ -->
22
+ <array name =" facebook_permissions" >
23
+ <item >public_profile</item >
24
+ <item >email</item >
25
+ </array >
26
+
27
+
12
28
<!--
13
29
The Google web client ID associated with this Android application. The
14
30
google-services gradle plugin will automatically provide this value.
You can’t perform that action at this time.
0 commit comments