title: ERROR (com.facebook.sdk error 5.) in ios
body: <p>In my project i am not posting anything only fetching different data from FaceBook.  </p>
  
  <p>some times i am getting the data but<br>
  most of the time i am getting this Error  </p>
  
  <p><B> The operation couldn’t be completed. (com.facebook.sdk error 5.) </B>  </p>
  
  <p>my small code is  </p>
  
  <pre><code>permissions = [[NSArray alloc] initWithObjects:@"user_friends",@"read_stream",
  @"read_requests",@"user_birthday",@"user_about_me",@"user_hometown",
  @"user_location",@"user_likes",@"email",
                 nil];
  
  
  [FBSession openActiveSessionWithReadPermissions:permissions
                                     allowLoginUI:YES
                                completionHandler:
   ^(FBSession *session,
     FBSessionState state, NSError *error) {
  NSString *queryNew55 = @"SELECT post_id,fromid,time FROM comment WHERE time &gt; 1375553100 AND post_id IN (SELECT post_id FROM stream WHERE source_id = me())";
  
       // Set up the query parameter
       NSDictionary *queryParam15 = @{ @"q": queryNew55 };
       // Make the API request that uses FQL
       [FBRequestConnection startWithGraphPath:@"/fql"
                                    parameters:queryParam15
                                    HTTPMethod:@"GET"
                             completionHandler:^(FBRequestConnection *connection,
                                                 id result,
                                                 NSError *error) {
                                 if (error) {
                                     NSLog(@"Error in comment query");
                                     NSLog(@"Error: %@", [error localizedDescription]);
                                 } else {
  
                                     NSLog(@"comments Result: %@", result);
  
  
                                 }
  
                             }
        ];
  
   }];  
  </code></pre>
  
  <p>I seen lots of thing on google on the same Error<br>
  and i applied that too but nothings works permanently.  </p>
  
  <p>in FaceBook App All the things like sandbox mode is off and bundle id are set perfectly.  </p>
  
  <p>any help like link or code or any thing related to this will be great Help.</p>