title: Graph API Error Domain=com.facebook.sdk Code=5
body: <p>I know had many same question on this website but still cannot find out the reason.I have a Facebook account then I goto developer Facebook page to create an app then I create an iOS app which had integrated Facebook API(login, get friends list). Then when I login to get taggable-friends with the above Facebook account, everything is ok. The problem is when I try to login by another Facebook account then I get error when get taggable-friends list.Here is my code:</p>
  
  <pre><code>[FBRequestConnection startWithGraphPath:@"/me/taggable_friends"
                               parameters:nil
                               HTTPMethod:@"GET"
                        completionHandler:^(
                                            FBRequestConnection *connection,
                                            NSDictionary *result,
                                            NSError *error
                                            ) {
                            /* handle the result */
                            NSArray *data = [result objectForKey:@"data"];
                            for (FBGraphObject&lt;FBGraphUser&gt; *friend in data) {
                                NSDictionary *picData = [friend objectForKey:@"picture"];
                                NSDictionary *picDetail = [picData objectForKey:@"data"];
  
                                [friendsList addObject:[friend name]];
                                [avatarLink addObject:[picDetail objectForKey:@"url"]];
                                NSLog(@"name: %@,Link: %@", [friend name], [picDetail objectForKey:@"url"]);
                            }
                            dispatch_async(dispatch_get_main_queue(), ^{
                                [tblView reloadData];
                            });
  
                        }];
  </code></pre>
  
  <p>I also try to fix by code: <code>[FBSession setActiveSession:self.session];</code> but did not work. The error as below:</p>
  
  <pre><code>  Error Domain=com.facebook.sdk Code=5 "The operation couldn’t be completed. (com.facebook.sdk error 5.)" UserInfo=0x7f9bea9172a0 {com.facebook.sdk:HTTPStatusCode=400, com.facebook.sdk:ErrorSessionKey=&lt;FBSession: 0x7f9be86297f0, state: FBSessionStateOpen, loginHandler: 0x7f9be863d450, appID: 811449395585015, urlSchemeSuffix: , tokenCachingStrategy:&lt;FBSessionTokenCachingStrategy: 0x7f9be8554390&gt;, expirationDate: 2015-01-23 09:55:49 +0000, refreshDate: 2014-11-25 08:53:50 +0000, attemptedRefreshDate: 0000-12-30 00:00:00 +0000, permissions:(
      "public_profile",
      "basic_info",
      email,
      "contact_email",
      "user_friends"
  )&gt;, com.facebook.sdk:ParsedJSONResponseKey={
      body =     {
          error =         {
              code = 10;
              message = "(#10) To use taggable_friends on behalf of people who are not admins, developers and testers of your app, your use of this endpoint must be reviewed and approved by Facebook. To submit this feature for review please read our documentation on reviewable features: https://developers.facebook.com/docs/apps/review";
              type = OAuthException;
          };
      };
      code = 400;
      headers =     (
                  {
              name = Expires;
              value = "Sat, 01 Jan 2000 00:00:00 GMT";
          },
                  {
              name = "Cache-Control";
              value = "no-store";
          },
                  {
              name = "Access-Control-Allow-Origin";
              value = "*";
          },
                  {
              name = Pragma;
              value = "no-cache";
          },
                  {
              name = "Content-Type";
              value = "text/javascript; charset=UTF-8";
          },
                  {
              name = "Facebook-API-Version";
              value = "v2.2";
          },
                  {
              name = "WWW-Authenticate";
              value = "OAuth \"Facebook Platform\" \"invalid_request\" \"(#10) To use taggable_friends on behalf of people who are not admins, developers and testers of your app, your use of this endpoint must be reviewed and approved by Facebook. To submit this feature for review please read our documentation on reviewable features: https://developers.facebook.com/docs/apps/review\"";
          }
      );
  }}
  </code></pre>
  
  <p>sorry for long log, but I want to be sure you got all the info so can help me to found the reason. Any help will appreciate.</p>
  
  <p><strong>Edit</strong></p>
  
  <p>I can use another Facebook account to get the above friends list, but before that I need to <strong>add specific account as a tester</strong> on Facebook Developer page so that I can use those account for login then get friends list.Now I had a question that it'll not useful when I public my app, cause I cannot add hundred users as a tester on my config app, and event I don't know the Facebook account of person will use my app. So, <strong>will I need to submit my app for review by Facebook</strong>, then another user can login and get friends list when they use my app(without config for those users as a tester in my app on Facebook Developer page)? or have another way to fix this problem?please help me to make this clearly.Many thanks!</p>