iosswiftfbsdk

FBSDK check if user has already authorised app Swift


I'm setting up log in with facebook, and what I am trying to do is when the user authorises the app for the first time they get segued to a new VC where they select a username.

But if that user logs out and then logs in again with facebook I dont want him to go to the new vc where he selects a username but the Homepage....

Not sure how this is done and haven't been able to find any posts about this apart from how to check if user is logged in....

Thanks in advance to anyone!


Solution

  • Facebook isn't going to tell you that you have logged with this app earlier or not.

    What you can do, try like below things.