iOS Facebook SDK: An active access token must be used to query information about the current user

前端 未结 5 2200
温柔的废话
温柔的废话 2020-12-30 06:01

I have followed many examples and looked at many questions regarding this access token error, but I can\'t seem to find out why I am getting it or how to fix it.

I i

5条回答
  •  感动是毒
    2020-12-30 06:37

    Well After some time, noticing that FBSession.activeSession was not nil, what I was missing before sending the request was:

        if (!FBSession.activeSession.isOpen) {
            [FBSession openActiveSessionWithAllowLoginUI: YES];
        }
    

提交回复
热议问题