Launch FBSDKShareDialog from UIActivityViewController instead of the default Facebook share sheet.
If you are using Branch Metrics and you want to use Facebook App Invites (FBSDKAppInviteDialog), i'll do this job for you!
Even if you have custom domain registered or the legacy domain.
You can use the AppInviteActivity, ShareLinkActivity or ShareMediaActivity UIActivity subclasses.
Fully customizable: Title, image, category, mode...
Share activity:
Action activity:
ARFacebookShareKitActivity is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "ARFacebookShareKitActivity"
If you only need certain activities, there subspecs available:
pod "ARFacebookShareKitActivity/SharingExtension"
pod "ARFacebookShareKitActivity/ShareLinkActivity"
pod "ARFacebookShareKitActivity/AppInviteActivity"
pod "ARFacebookShareKitActivity/ShareMediaActivity"
Or you can install it with Carthage:
github "alexruperez/ARFacebookShareKitActivity"
UIActivity+FacebookShareKit.swift
AppInviteActivity.swift
ShareLinkActivity.swift
ShareMediaActivity.swift
Use it in the same way you use UIActivityViewController, that easy!
If you want to replace native Facebook UISocialActivity, just call UIActivity.replaceFacebookSharing()
.
- Special thanks to jilouc/CCAFacebookAppActivity, which has inspired this repo.
- Also to my colleagues and friends, JavierQuerol and PabloLerma.
- Contributions are very welcome.
- Attribution is appreciated (let's spread the word!), but not mandatory.
Tweet the author @alexruperez, and check out alexruperez's blog: http://alexruperez.com
ARFacebookShareKitActivity is available under the MIT license. See the LICENSE file for more info.