Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/facebook/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xcode FacebookSDK-3.0.pkg关于FBPlacePickerViewController_Xcode_Facebook_Location - Fatal编程技术网

Xcode FacebookSDK-3.0.pkg关于FBPlacePickerViewController

Xcode FacebookSDK-3.0.pkg关于FBPlacePickerViewController,xcode,facebook,location,Xcode,Facebook,Location,我尝试使用FacebookSDK-3.0.pkg FBPlacePickerViewController,但当我单击按钮而不是崩溃时,请给我一些建议,非常感谢 - (IBAction)pickPlaceClick:(UIButton *)sender { FBPlacePickerViewController *placePickerController = [[FBPlacePickerViewController alloc] init]; placePickerContr

我尝试使用FacebookSDK-3.0.pkg FBPlacePickerViewController,但当我单击按钮而不是崩溃时,请给我一些建议,非常感谢

- (IBAction)pickPlaceClick:(UIButton *)sender {

    FBPlacePickerViewController *placePickerController = [[FBPlacePickerViewController alloc] init];
    placePickerController.title = @"Pick a Seattle Place";
    placePickerController.locationCoordinate = CLLocationCoordinate2DMake(25.047723, 121.450088);
    [placePickerController loadData];

    [placePickerController presentModallyFromViewController:self animated:YES handler:
     ^(FBViewController *sender, BOOL donePressed) {
         if (!donePressed) {
             return;
         }

         [[[UIAlertView alloc] initWithTitle:@"You Picked:"
                                     message:placePickerController.selection.name
                                    delegate:nil
                           cancelButtonTitle:@"OK"
                           otherButtonTitles:nil]
          show];
     }];
}
CrashLog:

2012-09-06 15:09:18.489 FacebookUserPost[35205:707] -[__NSCFDictionary length]: unrecognized selector sent to instance 0x1abc00
2012-09-06 15:09:18.498 FacebookUserPost[35205:707] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFDictionary length]: unrecognized selector sent to instance 0x1abc00'
*** First throw call stack:
(0x311b788f 0x374f5259 0x311baa9b 0x311b9915 0x31114650 0x31100f19 0x3111d2cd 0x3111c1ad 0x3111d279 0x31a3efb1 0x31a3ee8b 0x642ad 0x6475f 0x308a2efb 0x308a1fd9 0x308a1763 0x30845f37 0x311161fb 0x378edaa5 0x378ed6bd 0x378f1843 0x378f157f 0x378e94b9 0x3118bb1b 0x31189d57 0x3118a0b1 0x3110d4a5 0x3110d36d 0x33187439 0x30870cd5 0x4af5d 0x4aef8)
terminate called throwing an exception(lldb) 
然后我指出:

//placePickerController.locationCoordinate = CLLocationCoordinate2DMake(25.047723, 121.450088);
没有崩溃,但显示错误:

Error: HTTP status code: 500

我尝试下载FacebookSDK-3.0.8.pkg,但它无法运行