I'm trying to do FB.login to get only email, name and location, but the Facebook API always asks the user for access to friends lists

I have a simple application that allows the user to fill in the fields from their facebook account. All I want is an email, user name and location - why in the world even the simplest login without any additional permission requests leads to the facebook API asking the user to allow access to the friends list ... ?? I don’t need a friend list .. - is there a way to disable the permission request for a friend list?

FB.login(function(response) { if (response.authResponse) { console.log('Welcome! Fetching your information.... '); FB.api('/me', function(response) { console.log('Good to see you, ' + response.name + '.'); }); } else { console.log('User cancelled login or did not fully authorize.'); } }); 

The message user will get something like this:

Example.com would like to access your public profile, friend list, and email address.

I don’t want to request a “friend list” - is there any way to disable this?

+4
source share
2 answers

General information about the user profile and friend list appears to be included in the default permission set, that is, even when you specify an empty " scope ".

From facebook :

When a user enters your application and you do not request any additional permissions, the application will have access only to the user’s public profile and their list of friends . The public profile refers to the following default properties:

  • ID
  • name
  • first_name
  • last_name
  • link
  • Username
  • floor
  • locale
  • age_range
+1
source

Since facebook does not allow “facebook, face-book, face_book, ...” as an appname, you can find some ASCII-like characters to name your application. Perhaps you can try calling him "Ϝacebᴑᴑk" (F and o are not normal)

Thus, the login application will present the following message

Ϝacebᴑᴑk will receive the following information: your public profile and friend list.

instead

my-website-application will receive the following information: your public profile and friend list.

The above solution is less suspicious and does not imply that you want users to be their friends - after all, this is the information facebook wants to get.

0
source

All Articles