我正在尝试使用FBSDKShareDialog共享全景照片,但共享后在共享对话框和Facebook Feed中未将其标识为全景照片。但是,如果我将这张照片保存到Camera Roll或使用AirDrop在PC中,然后仅与Facebook应用程序共享或拖放到facebook.com,它就像全景照片一样共享。 我添加了Facebook需要的所有必需的exif(XMP)元数据。 在代码中,我与此分享:
let photoContent = FBSDKSharePhotoContent()
var photos:[FBSDKSharePhoto] = []
for url in urls {
if let photo = FBSDKSharePhoto(imageURL: url, userGenerated: true){
photos.append(photo)
}
}
photoContent.photos = photos
photoContent.addParameters(["allow_spherical_photo":true], bridgeOptions: .init(rawValue: 0))
let dialog = FBSDKShareDialog()
dialog.mode = .automatic
dialog.shareContent = photoContent
dialog.fromViewController = viewController
dialog.delegate = self
dialog.show()
链接到我要分享的照片 https://drive.google.com/file/d/1R0SemvHL85GMy-kY8--uNWzSDH-3oMDD/view?usp=sharing