File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed
java/com/firebase/ui/auth/provider Expand file tree Collapse file tree 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) {
7777 mCallbackManager = CallbackManager .Factory .create ();
7878 LoginManager loginManager = LoginManager .getInstance ();
7979 loginManager .registerCallback (mCallbackManager , this );
80+
81+ String [] permissions = activity .getResources ().getStringArray (R .array .facebook_permissions );
82+
8083 loginManager .logInWithReadPermissions (
81- activity , Arrays .asList ("public_profile" , "email" ));
84+ activity , Arrays .asList (permissions ));
8285 }
8386
8487 @ Override
Original file line number Diff line number Diff line change 99 -->
1010 <string name =" facebook_application_id" translatable =" false" >CHANGE-ME</string >
1111
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+
1228 <!--
1329 The Google web client ID associated with this Android application. The
1430 google-services gradle plugin will automatically provide this value.
You can’t perform that action at this time.
0 commit comments