title: The operation couldn’t be completed. (com.facebook.sdk.core error 8.)
body: <p>Hi i am using ios8 for facebook sharing an image from iphone application to facebook  and when i tapped photo button i am getting this error"The operation couldn’t be completed. (com.facebook.sdk error 8.)   </p>
  
  <p>this is the code i used to share an image from iphone application to facebook .</p>
  
  <pre><code>- (IBAction)photo:(id)sender
              {
                  FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init];
                  [login logInWithReadPermissions:@[@"email"] handler:^(FBSDKLoginManagerLoginResult *result, NSError *error)
                   {
                       if (error)
                       {
                           // Process error
                       }
                       else if (result.isCancelled)
                       {
                           // Handle cancellations
                       }
                       else
                       {
                           if ([result.grantedPermissions containsObject:@"email"])
                           {
                               //NSLog(@"result is:%@",result);
  
                               [self photo];
  
                           }
                       }
                   }];
              }
  
              - (void)photo
              {
                  FBSDKAccessToken *token = [FBSDKAccessToken currentAccessToken];
                  FBSDKGraphRequestConnection *connection = [[FBSDKGraphRequestConnection alloc] init];
                  UIImage *image = [UIImage imageNamed:@"TEST.png"];
  
                  NSDictionary *parameters = @{
                                               @"message" : @"welcome",
                                               @"picture" : UIImagePNGRepresentation(image),
                                               };
  
                  FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc] initWithGraphPath:@"me/photos" parameters:parameters tokenString:token.tokenString version:@"nil" HTTPMethod:@"POST"];
                  [connection addRequest:request completionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) {
                      if(error)
                          NSLog(@"%@", error);
                      else
                          NSLog(@"Success");
                  }];
  
                  [connection start];
              }
  </code></pre>
  
  <p>This is the error i am getting</p>
  
  <pre><code>fb sharing[1065:90399] Error Domain=com.facebook.sdk.core Code=8 "The operation couldn’t be completed. (com.facebook.sdk.core error 8.)" UserInfo=0x155c7720 {com.facebook.sdk:FBSDKGraphRequestErrorGraphErrorCode=2500, com.facebook.sdk:FBSDKGraphRequestErrorParsedJSONResponseKey={
      body =     {
          error =         {
              code = 2500;
              "fbtrace_id" = ErePY87sZ34;
              message = "Unknown path components: /me/photos";
              type = OAuthException;
          };
      };
      code = 400;
  }, com.facebook.sdk:FBSDKGraphRequestErrorHTTPStatusCodeKey=400, com.facebook.sdk:FBSDKErrorDeveloperMessageKey=Unknown path components: /me/photos, com.facebook.sdk:FBSDKGraphRequestErrorCategoryKey=0}
  </code></pre>
  
  <p>Any help is appreciated.</p>