Facebook Graph API para búsqueda de iOS

Estoy intentando search lugares desde GraphAPI utilizando el siguiente código sin suerte. ¿Alguien puede iluminar mi path?

Si trato de publicar un enlace / post / foto, funciona como se esperaba, pero cuando trato de get la location siempre falla y me da **The operation couldn't be completed. (facebookErrDomain error 10000.)** **The operation couldn't be completed. (facebookErrDomain error 10000.)**

 //Following statement is using permissions NSArray * permissions = [NSArray arrayWithObjects:@"publish_stream",@"user_checkins", @"friends_checkins", @"publish_checkins", nil]; [facebook authorize:FB_APP_ID permissions:permissions delegate:_delegate]; NSString *centerString = [NSString stringWithFormat: @"%f,%f", 37.76,-122.427]; NSString *graphPath = @"search"; NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys: @"coffee",@"q", @"place",@"type", centerString,@"center", @"1000",@"distance", // In Meters (1000m = 0.62mi) nil]; [facebook requestWithGraphPath:_path andParams:_params andHttpMethod:@"POST" andDelegate:_delegate]; 

No importa. Descargue la última muestra de HackBook de Facebook para el gráfico api de github e incluye un código de muestra para el mismo.

Para "search" debe usar "GET" en lugar de "POST".

https://developers.facebook.com/docs/graph-api/using-graph-api/v2.2#search

Con Facebook iOS SDK, puede usar FBRequestConnection después de iniciar session.

  [FBRequestConnection startWithGraphPath:@"search?q=coffee&type=place&center=37.76,-122.427&distance=1000" completionHandler:^(FBRequestConnection *connection, id result, NSError *error) { if (!error) { // Sucess! Include your code to handle the results here NSLog(@"result: %@", result); } else { // An error occurnetworking, we need to handle the error // See: https://developers.facebook.com/docs/ios/errors NSLog(@"error: %@", error); } }]; 

Con último SDK

 NSMutableDictionary *params2 = [NSMutableDictionary dictionaryWithCapacity:3L]; [params2 setObject:@"37.416382,-122.152659" forKey:@"center"]; [params2 setObject:@"place" forKey:@"type"]; [params2 setObject:@"1000" forKey:@"distance"]; [[[FBSDKGraphRequest alloc] initWithGraphPath:@"/search" parameters:params2 HTTPMethod:@"GET"] startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) { NSLog(@"RESPONSE!!! /search"); NSLog(@"result %@",result); NSLog(@"error %@",error); }];