IOS - Facebook SDK v3.11.1 - change the default application identifier

I use facebook SDK v3.11.1, and I have 2 facebook apps (on facebbok), each of which has an app id.

I programmatically change the default application id:

[FBSettings setDefaultAppID:<my_app_id>];

and then I call openActiveSessionWithReadPermissionsfacebook requests permission for the corresponding application.

After that, I try to change the default application identifier (the same code as above), in the same session, and no permissions are requested on facebook.

Should I close the old session, change the default application ID and reopen the new session?

Thanks in advance.

+3
source share
1 answer

FBSession . FBSession Facebook . , . . , FBSession.

APPID

Facebook, . @property ( , ) NSString * appID;

+1

All Articles