I have integrated Facebook login using FBLoginView. The response that i get in the delegate method (loginViewFetchedUserInfo) does not include the email of the user, just the id and name.
id = xxxxxxxxxxxxxx;
name = "FB Test";
The code for read permissions is as below:
FBLoginView *loginView = [[FBLoginView alloc] init];
loginView.center = self.view.center;
loginView.readPermissions = @[@"public_profile", @"email", @"user_friends"];
[loginView setDelegate:self];
[self.view addSubview:loginView];
I have also allowed the access to email in facebook for this app.
PS: I am facing this issue after changing the app name in Xcode. Other apps created using the same facebook account are working fine and fetch all the data requested for in readPermissions.
I can't seem to identify the issue and have tried (almost) everything in this regard.
Any help would be greatly appreciated. Thanks in advance.
您是否在Facebook开发者控制台的“设置”->“基本”->“ iOS”部分中更改了捆绑包ID?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.