当前位置: 动力学知识库 > 问答 > 编程问答 >

ios - Facebook SDK opens SafariViewController instead of Facebook app

问题描述:

I attached Facebook Login into my iOS app written in Swift, and for the first time after implementing stuff, I get dialog with question for opening Facebook app (as usual in iOS), I agreed and everything works fine.

Then I wanted to test it again but now I don't get any dialog and every time SafariViewController opens. I reinstalled app, but it didn't help. It's weird, because I agreed for first time to open app.

I also have this in .plist as described in docs:

<key>LSApplicationQueriesSchemes</key>

<array>

<string>fbapi</string>

<string>fb-messenger-api</string>

<string>fbauth2</string>

<string>fbshareextension</string>

</array>

网友答案:

I think it is not a big deal for you as long as the app works.

Sometime our iOS device will open Facebook app (if it is installed), sometime our iOS device will open Safari, or even if you already logged in and in a certain time, you can log in without asking any permission (which you did before).

分享给朋友:
您可能感兴趣的文章:
随机阅读: