Latest 2.1.0
Homepage https://github.com/smartnsoft/SNSSocial
License Free
Platforms ios 8.0, requires ARC
Authors

SNSSocial

Make social networks management easier on iOS.

The version 2.X is written in Objective-C (but fully compatible Swift). We are currently working on a full-Swift branch which should be available for the version 3.0.

Specifications

Requirements

  • Minimum iOS versions required : 8.0.
  • Swift or Objective-C project
  • Xcode 8.1+

Facebook Features

  • [x] Login / Logout, permissions
  • [x] User information
  • [x] Facebook posts (messages, links, images)
  • [x] Like something
  • [ ] My new awesome feature not available yet

Twitter Features

  • [x] Login / Logout
  • [x] User information (name, picture)
  • [x] Tweets (simple messages, pictures, geolocalized messages)
  • [ ] My new awesome feature not available yet

Documentation

SNSSocial allows you to use different social networks with similar approach (login, sharing).
The library is compatible with Facebook and Twitter. Each social network is independant.

See Github Wiki to have a look of all features or just look header files which are fully commented.

Usage

Cocoapods Installation

You can simply add the library to your project by using CocoaPods.

pod 'SNSSocial', '~> 2.0'

No need of all social networks? It is possible to specify what network to use.

pod 'SNSSocial/Facebook', '~> 2.0'
or
pod 'SNSSocial/Twitter', '~> 2.0'

Prepare your Info.plist

Facebook

For Facebook SDK, simply add the FacebookAppID and FacebookDisplayName keys

SNSSocial

Twitter

For Twitter SDK, simply add the TwitterAPIKey, TwitterAPISecret and TwitterCallBackScheme keys

SNSSocial

Sample code – Share a link on facebook

[SNSFacebookInteractions postLink:@"https://github.com/smartnsoft/SNSSocial"
                        withTitle:@"SNSSocial"
                      description:@"Discover SNSSocial, an iOS library to interact with social networks in your app!"
                       pictureUrl:nil
                 parentController:self
                      completion:^(id result, NSError * error)
{
    if (error == nil)
    {
        // Do something
    }
    else
    {
        // Display error
    }
}];

Sample code – Post a tweet

[SNSTwitter postTweetWithMessage:@"Sample tweet with SNSSocial #iosdev"
        fromParentViewController:self
                      completion:^(id result, NSError * error)
{
    if (error == nil)
    {
        // Do something
    }
    else
    {
        // Display error
    }
}];

Communication

SNSSocial is one of the Smart&Soft Libraries dedicated to the iOS Development.
It is developed and maintained by Smart&Soft, a cutting edge mobile agency in France.

  • If you found a bug, open an issue. Github issue page.
  • If you have a feature request, open an issue.
  • If you want to contribute, submit a pull request.

Changelog

The changelog is available on the dedicated file.

License

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

Latest podspec

{
    "name": "SNSSocial",
    "version": "2.1.0",
    "homepage": "https://github.com/smartnsoft/SNSSocial",
    "license": "Free",
    "summary": "Make social networks management easier on iOS.",
    "description": "An iOS library built by Smart&Soft, cutting edge mobile agency in France.",
    "authors": {
        "Smart&Soft": "[email protected]"
    },
    "source": {
        "git": "https://github.com/smartnsoft/SNSSocial.git",
        "tag": "2.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "ios": {
        "frameworks": [
            "UIKit",
            "QuartzCore",
            "Foundation",
            "Security"
        ]
    },
    "subspecs": [
        {
            "name": "Twitter",
            "ios": {
                "source_files": "SNSSocial/Classes/Twitter/**/*.{h,m}",
                "dependencies": {
                    "STTwitter": [
                        "0.2.5"
                    ]
                }
            }
        },
        {
            "name": "Facebook",
            "ios": {
                "source_files": "SNSSocial/Classes/Facebook/**/*.{h,m}",
                "dependencies": {
                    "FBSDKCoreKit": [
                        "~> 4.22"
                    ],
                    "FBSDKShareKit": [
                        "~> 4.22"
                    ],
                    "FBSDKLoginKit": [
                        "~> 4.22"
                    ]
                },
                "xcconfig": {
                    "CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES": "YES"
                }
            }
        }
    ]
}

Pin It on Pinterest

Share This