facebook-ios-sdk logout question

后端 未结 7 1130
谎友^
谎友^ 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条回答
  •  Happy的楠姐
    2020-12-01 13:36

    Answer already done, but I just want to clarify it. May be it saved somebody's time.

    Go to Facebook.m and change line

      [self authorizeWithFBAppAuth:YES safariAuth:YES];
    

    to

      [self authorizeWithFBAppAuth:YES safariAuth:NO];
    

    It will cause login window appear inside the app. Logout will work perfect. In other words, it will work as it used to in older versions of OS.

提交回复
热议问题