Latest 0.1.1
Homepage https://github.com/AquaSupport/AQSFacebookMessengerActivity
License MIT
Platforms ios 7.0, requires ARC
Dependencies Facebook-iOS-SDK
Authors

Build Status

[iOS] UIActivity class for sharing with Facebook Messenger for iOS

Usage

UIActivity *fbmActivity = [[AQSFacebookMessengerActivity alloc] init];

UIActivityViewController *activityViewController = [[UIActivityViewController alloc] initWithActivityItems:activityItems applicationActivities:@[fbmActivity]];

[self presentViewController:activityViewController animated:YES completion:NULL];

Accepted activityItems Types

  • FBLinkShareParams: Accepts only single
  • FBPhotoParams: Accepts only single
  • NSURL: Accepts only single
  • UIImage: Accepts single / multiple

Can perform activity when

  • When Facebook Messenger iOS App is installed and FB App information is properly set in .plist.
  • At least one of accepted types provided.

Setup

AQSFacebookMessengerActivity requires 3-min setup.

  1. Register Facebook App https://developers.facebook.com/apps/
  2. In your .plist, set FacebookAppID as your FB App ID. (like 7828392093)
  3. In your .plist, set FacebookDisplayName as you FB App’s Display Name.
  4. Setup URL Scheme like fb42 where 42 is your FB App ID (For FB App ID:7828392093, the URL Scheme is fb7828392093)

Installation

pod "AQSFacebookMessengerActivity"

Link to Documents

https://dl.dropboxusercontent.com/u/7817937/___doc___AQSFacebookMessengerActivity/html/index.html

Related Projects

References

Latest podspec

{
    "name": "AQSFacebookMessengerActivity",
    "version": "0.1.1",
    "summary": "[iOS] UIActivity Class for sharing with Facebook Messeger",
    "homepage": "https://github.com/AquaSupport/AQSFacebookMessengerActivity",
    "license": "MIT",
    "authors": {
        "kaiinui": "[email protected]"
    },
    "source": {
        "git": "https://github.com/AquaSupport/AQSFacebookMessengerActivity.git",
        "tag": "v0.1.1"
    },
    "source_files": "AQSFacebookMessengerActivity/Classes/**/*.{h,m}",
    "resources": [
        "AQSFacebookMessengerActivity/Classes/**/*.png"
    ],
    "requires_arc": true,
    "platforms": {
        "ios": "7.0"
    },
    "dependencies": {
        "Facebook-iOS-SDK": []
    }
}

Pin It on Pinterest

Share This