Facebook权限对话没有在应用中显示?

时间:2014-07-10 09:47:31

标签: ios iphone objective-c facebook-ios-sdk

如果用户使用手机配置了Facebook帐号,我的应用中没有显示权限对话框?

enter image description here

有人可以帮助我找不到我的东西吗?

这是我的代码

 - (void)viewDidLoad
{
[super viewDidLoad];
        self.loginButton.readPermissions=@[@"public_profile",@"email",@"user_likes",@"user_about_‌​me",@"user_hometown",@"user_location"];

self.loginButton.delegate=self;
}
       // enter code 

-(void)loginViewShowingLoggedInUser:(FBLoginView *)loginView
{
        NSLog(@"login %@",loginView);
}

-(void)loginViewFetchedUserInfo:(FBLoginView *)loginView user:(id<FBGraphUser>)user
{
        NSLog(@"%@", user);
}

       // enter

-(void)loginViewShowingLoggedOutUser:(FBLoginView *)loginView
{ 
        NSLog(@"logout  %@",loginView);
}

1 个答案:

答案 0 :(得分:1)

请检查您是否完成了以下操作

  1. 打开developer.facebook.com
  2. 转到您已创建的项目
  3. 转到设置 - &gt;去添加平台 - &gt;选择iOS
  4. 在该使用包ID中,它类似于您的项目包ID并点击保存
  5. 状态和审核并确保您的应用已启用(在设置中,您的邮件ID正确无误)