Facebook SDK iOS login with Facebook app installed

ぃ、小莉子 提交于 2019-12-04 05:36:33

This sounds like an out-case in that it is this scenario of 'only when the app was installed, authed, then uninstalled, then reinstalled'.

You should be able to fall-back to "classic web view authentication" when this particular thing happens.

if (facebookAppDidNotReturnProperly) {
   // therefore I must have been re-installed 
   // fallback to UIWebView

   [facebook authorizeWithFBAppAuth:NO safariAuth:NO];
}

Then again, you could also use safari auth too I suppose.

Darren

I ended up solving my questions by implementing the two solutions found here:

https://stackoverflow.com/a/5683454/472344

https://stackoverflow.com/a/9137887/472344

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!