I am upgrading to Facebook SDK 4.X and I am having trouble determining what to do immediately after login.
In the Facebook Delegate's loginButton didCompleteWithResult method, it returns successfully (skips the error if statement), so for my system I need to register the user with my server, so in the previous version of the Facebook SDK, I would send the access token to my server.
But in this didCompleteWithResult method, [FBSDKAccessToken currentAccessToken] is still returning nil
all my AppDelegate lifecycle methods return the facebook functions, so I'm not sure what else could be happening incorrectly, or where I should expect the AccessToken to be populated
You probably forgot the call the
FBSDKApplicationDelegatein thedidFinishLaunchingWithOptionsmethod.See the answer here: https://stackoverflow.com/a/30406194/561485.
The documentation explains more about the application:didFinishLaunchingWithOptions: method.