简体   繁体   English

Facebook iOS SDK“访问您的基本个人资料信息和朋友列表”删除朋友

[英]Facebook iOS SDK “Access your basic profile info AND list of Friends” remove Friends

Using the Facebook SDK for iOS and have the following basic login code: 使用iOS版Facebook SDK并具有以下基本登录代码:

FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init];
login.loginBehavior=FBSDKLoginBehaviorSystemAccount;

[login logInWithReadPermissions: @[@"public_profile"] fromViewController:self
 handler:^(FBSDKLoginManagerLoginResult *result, NSError *error) {

     NSMutableDictionary* parameters = [NSMutableDictionary dictionary];
     [parameters setValue:@"id,name" forKey:@"fields"];

     [[[FBSDKGraphRequest alloc] initWithGraphPath:@"me" parameters:parameters]
      startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
                                   id result, NSError *error) {


          NSLog(@"%@", result);
      }];
 }];

I ONLY want the basic profile information hence the call to public_profile 我只想要基本的个人资料信息,因此调用public_profile

However, when I make the call, I get the following: "MyApp" would like to access your basic profile info and list of friends ." 但是,当我打电话时,我得到以下信息:“ MyApp”希望访问您的基本个人资料信息和朋友列表 。”

I don't want to access list of friends. 我不想访问朋友列表。 When I go to the "MyApp" on facebook I can see it correctly only has access to the basic profile information. 当我转到Facebook上的“ MyApp”时,我可以正确地看到它只能访问基本的个人资料信息。

How can I modify the prompt so my user doesn't think I need any of their friend info? 如何修改提示,使我的用户认为我不需要他们的任何朋友信息?

Try creating a new App, the friend list was included in older App versions without the need to add user_friends to your scope. 尝试创建一个新的应用程序,该好友列表已包含在较早的应用程序版本中,而无需将user_friends添加到您的范围中。 Should not even be possible anymore because that was before v2.0, but you never know. 甚至不可能,因为那是v2.0之前的版本,但是您永远不会知道。 Could be a bug. 可能是一个错误。 If it does not work in a new App and you are really not using the user_friends scope, you should file a bug: https://developers.facebook.com/bugs/ 如果它在新的应用程序中不起作用,并且您实际上没有使用user_friends范围,则应提交一个错误: https : //developers.facebook.com/bugs/

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

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