I am using the built in LoginButton widget in the facebook sdk, I haven't made any changes to it I just include it in my xml layout file and call setSessionStatusCallback
nothing else.
However, when I click the login button facebook says I am asking for both basic info AND the friends list. I do not want permission to view the users friends, and after looking though the source of LoginButton it seems like it shouldn't be asking either, its permissions
String list is empty.
Whats going on here?
update: adding my code by request.
final LoginButton facebook = (LoginButton) getView().findViewById(R.id.facebook_login);
if(facebook != null){
if(Utility.getMetadataApplicationId(getActivity()) != null){
facebook.setVisibility(View.VISIBLE);
facebook.setSessionStatusCallback(new StatusCallback() {
@Override
public void call(Session session, SessionState state, Exception exception) {
if(session.isOpened()){
showProgress(true);
Request.executeMeRequestAsync(session, new GraphUserCallback() {
@Override
public void onCompleted(GraphUser user, Response response) {
Log.d("test", user.getId());
}
});
}
}
});
}
}
Asking for basic info + friends list is the most basic permissions that an app can request. If you do not supply any additional read permissions, then those two permissions are the only ones that will show up, and I do not believe you can remove them.
I believe we do this because when integrating your app with Facebook, the inherent reason is to make your app social and to provide a distribution channel for your app. So the friends list permission is added by default because you should use that permission to encourage the user to share your app with their friends if they wish to do so with the app requests dialog etc.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With