Is it possible to post 360 Photos to Facebook from an iOS App?

210 views Asked by At

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?

2

There are 2 answers

0
Piao On BEST ANSWER

Ok, finally I found this thread.

It seems Facebook reads metadata to recognize 360 degree photos.

0
COOKIES On

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