我正在使用以下代码在 facebook 上发布照片。
if ([FBDialogs canPresentShareDialogWithPhotos])
{
FBShareDialogPhotoParams *params = [[FBShareDialogPhotoParams alloc] init];
// Note that params.photos can be an array of images. In this example
// we only use a single image, wrapped in an array.
params.photos = @[imageDetails.chosenImage];
params.place=@"Abracadabra Snap! ios application";
[FBDialogs presentShareDialogWithPhotoParams:params
clientState:nil
handler:^(FBAppCall *call,
NSDictionary *results,
NSError *error) {
if (error) {
NSLog(@"Error: %@",
error.description);
} else {
NSLog(@"Success!");
}
}];
}
它向我显示了一个对话框,我在其中写了一些文本并单击帖子,在我单击帖子后,它上传图像并返回到调用控制器,但不返回错误或成功,也不在 facebook 上发布图像任何一个。请帮忙解决这个问题