gpt4 book ai didi

ios - facebook ios sso 出现 "safari cannot open page"错误

转载 作者:可可西里 更新时间:2023-11-01 04:36:29 27 4
gpt4 key购买 nike

我一直在为 android 和 iphone 开发一个应用程序,并且能够在 android 上实现 sso 但是当我尝试在 iOS 上实现它时我得到了上面提到的错误:

"Safari cannot open the page because the address is invalid"

点击“确定”将我在facebook上的个人信息权限授予应用程序后显示错误

有问题的链接是:m.facebook.com/dialog/oauth?refid=0

这是我的 info.plist 文件

<plist version="1.0">
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>icon.png</string>
<string>icon@2x.png</string>
<string>icon-72.png</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDisplayName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIconFile</key>
<string>icon.png</string>
<key>CFBundleIdentifier</key>
<string>com.snizilica.app</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSMainNibFile</key>
<string></string>
<key>NSMainNibFile~ipad</key>
<string></string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>[com.facebook.test]</string>
<key>CFBundleURLSchemes</key>
<array>
<string>fb[xxxxxxxxxxxxxxx]</string>
</array>
</dict>
</array>

其中 xxxxxxxxxxx 是我的 app_id

最佳答案

遇到了同样的问题。解决了它删除了应用程序 ID 中的方括号

               ...rfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>fb123456789012345</string>
</array>
</dict>
</array>
</dict>
</plist>

不要在应用程序 ID 周围使用任何方括号

关于ios - facebook ios sso 出现 "safari cannot open page"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9311099/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com