I'm struggling with an upgrade to SDK 4.0 for iOS. I got the login setup and working just fine as well as app invites (which was the main objective to the upgrade).
Two issues remain:
Previously I could resume the current session on app start with [FBSession openActiveSessionWithReadPermissions:allowLoginUI:completionHandler]. That method is not available anymore and if I call [FBSDKAccessToken currentAccessToken] I get nil. Is this by design or am I missing some steps? To be clear, the user logs in and gets an accessToken. After restart of the app the token is lost and I need to login again with an app switch to Facebook. I'd like to avoid the app switch if possible.
The app invite dialog is presented just fine but it fails when sending the request. I'm using a test user with the iOS simulator. I cannot see any error message to track the issue. Could there be some limitations with the simulator or test user?