FB 4.0 - FBSession openActiveSessionWithReadPermissions replacement

I previously used the Facebook SDK 3.x for iOS. My code has FBSession openActiveSessionWithReadPermissions in different places, and now when I use version 4.x, I'm not sure if the replacement

I think these are login methods, but I'm not sure what a 1: 1 replacement / equivalent is.

+5
source share
1 answer

Right. You can convert it to the following FBSDKLoginManager method:

 - (void)logInWithReadPermissions:(NSArray *)permissions handler:(FBSDKLoginManagerRequestTokenHandler)handler; 

Or, if you are looking for permission to publish, you can use:

 - (void)logInWithPublishPermissions:(NSArray *)permissions handler:(FBSDKLoginManagerRequestTokenHandler)handler; 
+3
source

All Articles