我具有集成的FBSDKShare,用于共享图像。我只能共享一个图像,但我想共享多个图像
我正在使用的代码
SELECT x.Abnumber,
(CASE WHEN x.Abdate is not null AND
x.Abnumber > 1 AND
x.Abdate < prev_Abdate
THEN 'bla bla'
ELSE ''
END)
FROM (SELECT x.*,
LAG(Abdate) OVER (PARTITION BY Annumber ORDER BY Abnumber) as prev_Abdate)
FROM t_tablex x
) x
WHERE (@Annumber IS NULL OR x.Annumber= @Annumber) AND
(@Abnumber IS NULL OR x.Abnumber = @Abnumber);
我遇到的错误
提前谢谢。
答案 0 :(得分:0)
- (void)imagePickerController:(UIImagePickerController *)picker
didFinishPickingMediaWithInfo:(NSDictionary *)info
{
UIImage *image = info[UIImagePickerControllerOriginalImage];
FBSDKSharePhoto *photo = [[FBSDKSharePhoto alloc] init];
photo.image = image;
photo.userGenerated = YES;
FBSDKSharePhotoContent *content = [[FBSDKSharePhotoContent alloc] init];
content.photos = @[photo];
...
}
根据Facebook集成文档,人们需要安装iOS 7.0或更高版本的本机Facebook。
答案 1 :(得分:0)
是的,我有解决办法
FBSDKShareDialog *dialog = [[FBSDKShareDialog alloc] init];
FBSDKSharePhotoContent *content = [[FBSDKSharePhotoContent alloc] init];
for( int i = 0; i < (int)pActiveSession.aShotImages.count; i++ )
{
FBSDKSharePhoto *photo = [[FBSDKSharePhoto alloc] init];
UIImage *image = [UIImage imageWithData:pActiveSession.aShotImages[i]];
photo.image = image;
[pActiveSession.allShotImages addObject:photo];
}
content.photos = pActiveSession.allShotImages;
dialog.mode = FBSDKShareDialogModeNative;
[FBSDKShareDialog showFromViewController:self
withContent:content
delegate:nil];