Latest 1.2
Homepage https://github.com/alexruperez/ARFacebookShareKitActivity
License MIT
Platforms ios 8.0
Dependencies FBSDKShareKit, FBSDKCoreKit, Bolts
Authors

Twitter
Version
License
Platform
Build Status
Analytics

Overview

Launch FBSDKShareDialog from UIActivityViewController instead of the default Facebook share sheet.

ARFacebookShareKitActivity Screenshot 1

ARFacebookShareKitActivity Screenshot 2

Also compatible with Branch Metrics and Facebook App Invites!

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.

ARFacebookShareKitActivity Screenshot 3

Like it, but don’t want to replace the native sharing activity? Ok, no problem!

You can use the AppInviteActivity, ShareLinkActivity or ShareMediaActivity UIActivity subclasses.

Fully customizable: Title, image, category, mode…

Share activity:

ARFacebookShareKitActivity Screenshot 4

Action activity:

ARFacebookShareKitActivity Screenshot 5

Installation

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"

Or you can add the following files to your project:

  • UIActivity+FacebookShareKit.swift
  • AppInviteActivity.swift
  • ShareLinkActivity.swift
  • ShareMediaActivity.swift

Usage

Use it in the same way you use UIActivityViewController, that easy!

Easter egg

If you want to replace native Facebook UISocialActivity, just call UIActivity.replaceFacebookSharing().

Etc.

  • 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.

Use it? Love/hate it?

Tweet the author @alexruperez, and check out alexruperez’s blog: http://alexruperez.com

License

ARFacebookShareKitActivity is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "ARFacebookShareKitActivity",
    "version": "1.2",
    "summary": "Launch FBSDKShareKit from UIActivityViewController.",
    "homepage": "https://github.com/alexruperez/ARFacebookShareKitActivity",
    "screenshots": [
        "https://raw.githubusercontent.com/alexruperez/ARFacebookShareKitActivity/master/screenshot1.jpg",
        "https://raw.githubusercontent.com/alexruperez/ARFacebookShareKitActivity/master/screenshot2.jpg",
        "https://raw.githubusercontent.com/alexruperez/ARFacebookShareKitActivity/master/screenshot3.jpg",
        "https://raw.githubusercontent.com/alexruperez/ARFacebookShareKitActivity/master/screenshot4.jpg",
        "https://raw.githubusercontent.com/alexruperez/ARFacebookShareKitActivity/master/screenshot5.jpg"
    ],
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "alexruperez": "[email protected]"
    },
    "source": {
        "git": "https://github.com/alexruperez/ARFacebookShareKitActivity.git",
        "tag": "1.2"
    },
    "social_media_url": "https://twitter.com/alexruperez",
    "platforms": {
        "ios": "8.0"
    },
    "dependencies": {
        "FBSDKShareKit": [],
        "FBSDKCoreKit": [],
        "Bolts": []
    },
    "pushed_with_swift_version": "4.0",
    "subspecs": [
        {
            "name": "SharingDelegateExtension",
            "source_files": "ARFacebookShareKitActivity/Classes/SharingDelegateExtension/*.swift"
        },
        {
            "name": "SharingExtension",
            "source_files": "ARFacebookShareKitActivity/Classes/SharingExtension/*.swift",
            "dependencies": {
                "ARFacebookShareKitActivity/SharingDelegateExtension": []
            }
        },
        {
            "name": "ShareLinkActivity",
            "source_files": "ARFacebookShareKitActivity/Classes/ShareLinkActivity/*.swift",
            "resources": "ARFacebookShareKitActivity/Assets/ShareLinkActivity/*.xcassets",
            "dependencies": {
                "ARFacebookShareKitActivity/SharingDelegateExtension": []
            }
        },
        {
            "name": "AppInviteActivity",
            "source_files": "ARFacebookShareKitActivity/Classes/AppInviteActivity/*.swift",
            "resources": "ARFacebookShareKitActivity/Assets/AppInviteActivity/*.xcassets",
            "dependencies": {
                "ARFacebookShareKitActivity/SharingDelegateExtension": []
            }
        },
        {
            "name": "ShareMediaActivity",
            "source_files": "ARFacebookShareKitActivity/Classes/ShareMediaActivity/*.swift",
            "resources": "ARFacebookShareKitActivity/Assets/ShareMediaActivity/*.xcassets",
            "dependencies": {
                "ARFacebookShareKitActivity/SharingDelegateExtension": []
            }
        }
    ]
}

Pin It on Pinterest

Share This