See below.  Put this in the SFSDKAppDelegate protocol.