By accessing and using this functionality, you acknowledge and agree to be bound by the Meta Platform Terms and Developer Policies. You also represent and warrant that any content made available through your application or website, or shared to Facebook Reels from your application or website, does not infringe upon the intellectual property rights of any third party and that you own, control or have otherwise secured all rights necessary to distribute, copy, publicly perform and display, or otherwise use the content via this functionality, including as uploaded and shared on Facebook Reels. You further represent and warrant that you have the authority to make the foregoing representations on behalf of your organization. If you do not have such authority or are otherwise unable to make the foregoing representations, you are not authorized to continue and should not do so.

Sharing to Facebook Reels From iOS

You can integrate sharing into your iOS app so that users can share video content to Facebook Reels. To create a new app, see Getting Started with the Facebook SDK for iOS.

Facebook Reel Layers

The Facebook Reels composer has a background video layer and an optional sticker layer.

  • Background Video Layer – A video fills the screen.
  • Sticker Layer – An optional sticker can appear in front of the video.

Currently, you can't send sticker data to Facebook Reels from your iOS app.

Download the Sharing Icon

For a consistent user experience across apps, download the standard sharing icon and use it in your app. The sharing icon looks like the following:

Implement Sharing

You use a custom URL scheme to launch the Facebook app and send it content for Reels. The Facebook app receives the content, loads it in the Reels composer, and the user can edit and publish the content to their Facebook Reels.

In general, your sharing flow does the following:

  1. Verify that your app can resolve Facebook's custom URL scheme.
  2. Attach content to the pasteboard that you want to share.
  3. Resolve the custom URL scheme if your app is able to.

Remove any temporary files that you create on the user's device.

Configure Your App for Sharing

Before you can implement sharing in your app, add your app ID and register Facebook's custom URL scheme in the Info.plist file for your app. Add facebook-reels to the LSApplicationQueriesSchemes key. For details, see Configure Your Project.

Data

You send the following data to the Facebook app.

DataTypeDescriptionRequired

Facebook App ID

NSString *

Your Facebook App ID.

Yes

Background Video

NSURL *

The URL for a video. Videos can be 1080p and should be between 3 and 60 seconds in duration. Acceptable video formats are H.264, H.265, and WebM. Under 50 MB is recommended.

Yes

Example

The following code example sends a video to Facebook so the user can edit and publish it to their Facebook Reels.

- (void)shareBackgroundVideo
{
  // Identify your App ID
  NSString *const appIDString = @"1234567890";

  // Identify your video content
  NSURL *const backgroundVideoURL = [[NSBundle bundleForClass:[self class]]URLForResource:@"your-video-url-goes-here" withExtension:@"mp4"];
  NSData *const backgroundVideoData = [NSData dataWithContentsOfURL:backgroundVideoURL];

  // Call method to share video
  [self backgroundVideo: backgroundVideoData appIDString];
}


// Method to share video
- (void)backgroundVideo:(NSData *)backgroundVideo 
        appID:(NSString *)appID
{
  NSURL *urlScheme = [NSURL URLWithString:@"facebook-reels://share"];

  if ([[UIApplication sharedApplication] canOpenURL:urlScheme])
  {
    // Add background video to pasteboard items
    NSArray *pasteboardItems = @[@{@"com.facebook.sharedSticker.backgroundVideo" : backgroundVideo,
                                   @"com.facebook.sharedSticker.appID" : appID}];

    // Set pasteboard options
    NSDictionary *pasteboardOptions = @{UIPasteboardOptionExpirationDate : [[NSDate date] dateByAddingTimeInterval:60 * 5]};

    // Attach the pasteboard items
    // This call is iOS 10+, can use 'setItems' depending on what versions you support
    [[UIPasteboard generalPasteboard] setItems:pasteboardItems options:pasteboardOptions];
        
    [[UIApplication sharedApplication] openURL:urlScheme options:@{} completionHandler:nil];
  } 
  else
  {
     // Handle error cases
  }
}