title: facebook login ask for Login Review Permission
body: <p>I am using facebook sdk for share status on facebook wall.</p>
  
  <p>but I got message while grant permission.</p>
  
  <p>"submit for login review some of the permissions below have not been approved for use by facebook in ios Submit for Review or learn more"</p>
  
  <p>here is my code.</p>
  
  <pre><code>  - (IBAction)PostStatus:(id)sender
    {
      [self postWithText:self.txtField.text ImageName:nil URL:@"http://developers.facebook.com/ios" Caption:nil Name:nil andDescription:nil];
  
    }
  
  
  -(void) postWithText: (NSString*) message
         ImageName: (NSString*) image
               URL: (NSString*) url
           Caption: (NSString*) caption
              Name: (NSString*) name
    andDescription: (NSString*) description
    {
  
  NSMutableDictionary* params = [[NSMutableDictionary alloc] initWithObjectsAndKeys:
                                 url, @"link",
                                 name, @"name",
                                 caption, @"caption",
                                 description, @"description",
                                 message, @"message",
                                 UIImagePNGRepresentation([UIImage imageNamed: image]), @"picture",
                                 nil];
  
  if ([FBSession.activeSession.permissions indexOfObject:@"publish_actions"] == NSNotFound)
  {
      // No permissions found in session, ask for it
      [FBSession.activeSession requestNewPublishPermissions: [NSArray arrayWithObject:@"publish_actions"]
                                            defaultAudience: FBSessionDefaultAudienceFriends
                                          completionHandler: ^(FBSession *session, NSError *error)
       {
           if (!error)
           {
               // If permissions granted and not already posting then publish the story
  
                   [self postToWall: params];
  
           }
       }];
  }
  else
  {
      // If permissions present and not already posting then publish the story
          [self postToWall: params];
  }
  }
  
   -(void) postToWall: (NSMutableDictionary*) params
   {
    // m_postingInProgress = YES; //for not allowing multiple hits
  
  [FBRequestConnection startWithGraphPath:@"me/feed"
                               parameters:params
                               HTTPMethod:@"POST"
                        completionHandler:^(FBRequestConnection *connection,
                                            id result,
                                            NSError *error)
   {
       if (error)
       {
           //showing an alert for failure
           UIAlertView *alertView = [[UIAlertView alloc]
                                     initWithTitle:@"Post Failed"
                                     message:error.localizedDescription
                                     delegate:nil
                                     cancelButtonTitle:@"OK"
                                     otherButtonTitles:nil];
           [alertView show];
       }
  
   }];
  }
  </code></pre>