Latest 0.1.0
Homepage https://github.com/magicmon/SocialLoginKit
License MIT
Platforms ios 8.0
Authors

Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • Swift 3.0
  • Xcode 8
  • iOS 8.0+

Installation

Each site can be added, and all can be added.

If you want FacebookKit

pod 'SocialLoginKit/Faceook'

with Naver

pod 'SocialLoginKit/Naver'

with Kakao

pod 'SocialLoginKit/Kakao'

All of them

pod 'SocialLoginKit/Faceook'
pod 'SocialLoginKit/Naver'
pod 'SocialLoginKit/Kakao'

Setting

Info.plist

Add the key related to SocialLoginKit to the Info.plist. These are the permission key values for facebook and naver.

<key>SocialLoginKitKey</key>
<dict>
  <key>FacebookPublishPermissions</key>
  <array>
    <string>publish_actions</string>
  </array>
  <key>FacebookReadPermissions</key>
  <array>
    <string>public_profile</string>
    <string>email</string>
    <string>user_friends</string>
  </array>
  <key>NaverConsumerKey</key>
  <string>{Your-Naver-Consumer-Key}</string>
  <key>NaverConsumerSecret</key>
  <string>{Your-Naver-Consumer-Secret}</string>
  <key>NaverAppName</key>
  <string>{Your-Naver-App-Name}</string>
  <key>NaverServiceURLScheme</key>
  <string>{Your-Naver-Service-URL-Scheme}</string>
</dict>

Other settings are the same as the SDK Setting Guide.

Facebook Getting Started

카카오 개발 가이드 > iOS 개발가이드 > 시작하기

Usage

Author

magicmon, https://magicmon.github.com

License

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

Latest podspec

{
    "name": "SocialLoginKit",
    "version": "0.1.0",
    "summary": "multiple social login kit. Support to Naver, Kakao and Facebook",
    "description": "multiple social login kit. Support to Naver, Kakao and Facebook",
    "homepage": "https://github.com/magicmon/SocialLoginKit",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "magicmon": "[email protected]"
    },
    "source": {
        "git": "https://github.com/magicmon/SocialLoginKit.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "default_subspecs": "Core",
    "pushed_with_swift_version": "3.0",
    "subspecs": [
        {
            "name": "Core",
            "source_files": "SocialLoginKit/Classes/**/*"
        },
        {
            "name": "Facebook",
            "dependencies": {
                "SocialLoginKit/Core": [],
                "FBSDKCoreKit": [
                    "4.22.0"
                ],
                "FBSDKLoginKit": [
                    "4.22.0"
                ],
                "FBSDKShareKit": [
                    "4.22.0"
                ]
            },
            "source_files": "SocialLoginKit/Facebook/Classes/**/*.swift",
            "resource_bundles": {
                "FacebookBundle": [
                    "SocialLoginKit/Facebook/Dependencies/Resources/*.png"
                ]
            },
            "pod_target_xcconfig": {
                "OTHER_LDFLAGS": "-all_load -ObjC",
                "OTHER_SWIFT_FLAGS": "$(inherited) "-DFacebook""
            }
        },
        {
            "name": "Naver",
            "dependencies": {
                "SocialLoginKit/Core": []
            },
            "source_files": [
                "SocialLoginKit/Naver/Classes/**/*",
                "SocialLoginKit/Naver/Dependencies/thirdPartyModule/*.[h,m]"
            ],
            "vendored_libraries": "SocialLoginKit/Naver/Dependencies/thirdPartyModule/libNaverLogin.a",
            "resources": "SocialLoginKit/Naver/Dependencies/Resources/NaverAuth.bundle",
            "pod_target_xcconfig": {
                "OTHER_LDFLAGS": "-all_load -ObjC",
                "OTHER_SWIFT_FLAGS": "$(inherited) "-DNaver""
            }
        },
        {
            "name": "Kakao",
            "dependencies": {
                "SocialLoginKit/Core": []
            },
            "source_files": [
                "SocialLoginKit/Kakao/Classes/**/*.{h,swift}",
                "SocialLoginKit/Kakao/Dependencies/**/*.h"
            ],
            "vendored_frameworks": "SocialLoginKit/Kakao/Dependencies/KakaoOpenSDK.framework",
            "pod_target_xcconfig": {
                "OTHER_LDFLAGS": "-all_load -ObjC",
                "OTHER_SWIFT_FLAGS": "$(inherited) "-DKakao""
            }
        }
    ]
}

Pin It on Pinterest

Share This