facebook-ios-sdk logout question

后端 未结 7 1135
谎友^
谎友^ 2020-12-01 12:51

I have seen a lot of questions here regarding the Facebook Graph API but I still haven\'t find a solution for simple \'login\'/\'logout\' operations using it. Looks like the

7条回答
  •  爱一瞬间的悲伤
    2020-12-01 13:50

    in addition to kishnan94 answer. the objective c version is ;

    if you want a modal to open up and ask for facebook credentials seperately from Safari or Facebook app, just use the latest facebook sdk and set the login behaviour

    FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init];
    [login setLoginBehavior:FBSDKLoginBehaviorWeb];
    

    this will make the logout process more convenient and less confusing for users without using safari or facebook app accounts.

提交回复
热议问题