How does Facebook SSO know which app to return to?

后端 未结 1 1067
梦如初夏
梦如初夏 2021-01-28 01:02

Using Facebook SSO (Single Sign on), after the system prompts the user for permissions to work with their Facebook account, it directs the user back to the app that SSO was bein

相关标签:
1条回答
  • 2021-01-28 01:38

    When you add the Facebook SDK, one of the steps is to register a URL scheme for your app with your API key.

    When you authorize the app in Facebook it tries to open the URL (usually formatted like fbXXXXXXXXXXX) and since your app is set to handle this URL scheme so the app is opened.

    And here's a list of other apps you can communicate using handleOpenURL:

    http://handleopenurl.com/

    0 讨论(0)
提交回复
热议问题