我正在尝试将我的游戏截图直接分享给用户的Feed。虽然这似乎可以通过iOS Facebook SDK https://developers.facebook.com/docs/sharing/ios这样,
- (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];
...
}
我在SDK的Unity版本中找不到相应的功能。网上搜索告诉我使用FB.API将照片上传到用户的相册,然后使用创建的链接使用FB.FeedShare似乎是一种不正确的方法。