I am trying to search for places from GraphAPI using the following code with no luck. Can anyone tell me about my path?
If I try to post a link / message / photo, it works as expected, but when I try to get the location, it always fails and gives me **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];
source share