I am looking for a way to post 360 photos on Facebook through my iOS app.
I have been searching on google and couldn't find any useful answer.
Could anyone please clarify about the possibility?
I am looking for a way to post 360 photos on Facebook through my iOS app.
I have been searching on google and couldn't find any useful answer.
Could anyone please clarify about the possibility?
I've created a framework that does exactly this.
Given that you've got the permission successfully, here's what you would do:
[[Facebook360Manager sharedInstance] shareImage:[UIImage imageNamed:@"cylindrical360.jpg"]
userCaption:@"Example caption..."
horizontalFOV:360.0
sharePreference:FacebookShareManagerPreferenceCylindricalImage
completionBlock:^(NSError * _Nullable error, NSString * _Nullable postID) {
if (error) {
NSLog(@"Error: %@",error);
}else{
NSLog(@"Shared successfully. Post ID: %@",postID);
}
}];
Here's a link to the framework: https://github.com/AppCoders-io/Facebook360
Ok, finally I found this thread.
It seems Facebook reads metadata to recognize 360 degree photos.