Problems with fbDidLogin never called iOS

前端 未结 6 1479
死守一世寂寞
死守一世寂寞 2021-01-22 02:18

I\'m having problems with my app saving the access_token. The problem is, when an iPhone hasn\'t the Facebook app installed, safari will handle this and there is no problem. But

6条回答
  •  感情败类
    2021-01-22 02:59

    That's what it does now. It bails out to the Facebook app if it's installed, or to Safari if it's not. You can explicitly use the dialog interface, but the simplest sample code supplied with the library does its auth business by leaving your app, then coming back after the FB app has handled auth. It works okay, and once you have your head around it (and have it configured properly to return to you), it's fine.

    To prevent re-authentication on each session, request the permission token "offline_access".

提交回复
热议问题