How to get user phone number using loginViewFetchedUserInfo?

I use FBLoginView to authenticate login and retrieve user information in my iOS application.

I got all the FB user information using FBLoginView and its below delegation method

-(void)loginViewFetchedUserInfo:(FBLoginView *)loginView user:(id<FBGraphUser>)user{
}
Response is :-
bio = "some bio";
email = "email address";
"first_name" = My first name;
gender = male;
id = my id;
"last_name" = my last name;
link = "face book url link";
locale = "en_US";
name = "my full name";
timezone = "5.5";
"updated_time" = "2014-05-29T12:59:48+0000";
verified = 1;

Now the problem is that I do not get only the user's phone number.

any help?

early.

+4
source share
2 answers

It is not possible to get a phone number because the link below says that there is no permission for the phone number.

Click here .

+4
source

, - FBLoginView Facebook SDK iOS .

+2

Source: https://habr.com/ru/post/1542491/


All Articles