Bandish Dave
Bandish Dave

Reputation: 811

Facebook permission dialogue not showing in app?

Permission dialogue not showing in my app if user has configured Facebook account with their phone?

enter image description here

Can anybody help me what was missing by me?

Here is my code

 - (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);
}

Upvotes: 1

Views: 201

Answers (1)

Praveenkumar_Contus
Praveenkumar_Contus

Reputation: 101

Please check whether you done followings

  1. open developer.facebook.com
  2. go to projects which you have created
  3. go to settings --> go to add platform--> select iOS
  4. In that use bundle ID which is similar to your project bundle ID and hit save
  5. status and Review and make sure your app is on (In settings you have your mail ID correctly)

Upvotes: 1

Related Questions