简体   繁体   English

更改应用程序名称后,Facebook iOS SDK不返回电子邮件

[英]Facebook iOS SDK not returning email after changing app name

I have integrated Facebook login using FBLoginView. 我已经使用FBLoginView集成了Facebook登录。 The response that i get in the delegate method (loginViewFetchedUserInfo) does not include the email of the user, just the id and name. 我在委托方法(loginViewFetchedUserInfo)中得到的响应不包括用户的电子邮件,仅包括ID和名称。

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. 我还允许访问此应用程序的Facebook中的电子邮件。

PS: I am facing this issue after changing the app name in Xcode. PS:在Xcode中更改应用程序名称后,我面临此问题。 Other apps created using the same facebook account are working fine and fetch all the data requested for in readPermissions. 使用相同的facebook帐户创建的其他应用程序可以正常工作,并读取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?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM