Practice to FB SDK and Google+ SDK Login
##Use
- Facebook SDK for iOS v4.7
- Google+ iOS SDK v1.7.1
##Issue
- Facebook SDK v4.6 later have new behavior in login. It use Safari View Controller by default rather the fast-app-switching to the native Facebook app.
Reference:stack overflow , Facebook Bug
##How to Use
- Start the SDK, Please see the Facebook SDK for iOS and Google+ Platform for iOS.
- In ViewController.m
- googlePlusClientId : Please enter your Client ID.
- googleAPIKey : Please enter your API Key.
- Client ID and API Key is create in Google Developers Console.
- In Info.plist
- FacebookAppID : Please enter your FB App ID.
- FacebookDisplayName : Please enter your display name.
- URL types -> Item 0 -> URL Schemes -> Item 0 : Please enter "fb + your FB App ID", Ex:fb6456xxxxxxxxxxx.
- (Google Plus URL types) TARGETS -> Info -> URL Types -> URL Schemes : Please enter your Google Client ID's Bundle ID
##In iOS9
-
should setting NSAppTransportSecurity and LSApplicationQueriesSchemes in Info.plist
-
LSApplictionQueriesSchemes
-
FB (v4.6 later)
- fbapi
- fbauth2
- fb-messenger-api
- fbshareextension
-
Google Plus
- com.google.gppconsent.2.4.1
- com.google.gppconsent.2.4.0
- com.google.gppconsent.2.3.0
- com.google.gppconsent.2.2.0
- com.google.gppconsent
- hasgplus4
- googlechrome-x-callback
- googlechrome
-