gpt4 book ai didi

iphone - Facebook iOS Safari "Cannot Open Page Error"使用单点登录验证用户时

转载 作者:IT王子 更新时间:2023-10-29 07:52:43 26 4
gpt4 key购买 nike

我正在为这个问题打转 - Facebook 似乎有一些关于它的公开票,但我想看看是否有人遇到了我遇到的同样问题并找到了临时或更好的解决方案。

我下载了 Facebook 的“DemoApp”,然后可以将我的 appId 放入它的 info.plist 中:fb1234567890(其中 1234567890 是我的 appId)。它可以通过对 Safari 进行多任务处理来验证用户身份,输入我的凭据,允许我的应用程序访问,然后在我登录的情况下重定向回“DemoApp”(我可以很好地请求我的信息)。

现在,我正在尝试将 DemoApp 的功能集成到我现有的应用程序中。

我能够访问登录屏幕,并输入我的凭据。它允许我允许我的应用程序访问我的个人信息 - 我单击 allow 并且 Safari 处理一个新请求,然后返回错误消息:Safari 无法打开请求,因为地址无效 URL:http://www.facebook.com/connect/uiserver.php

但是,如果我在我的模拟器和我自己的应用程序上安装了 DemoApp,它会在我成功登录后切换回 DemoApp。如果我卸载 DemoApp 并尝试再次使用我的应用程序,我收到 Safari 错误。

我能做些什么来解决这个问题?? 任何帮助都会很好;我在这里敲我的头。:(

我的info.plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string></string>
<key>CFBundleURLSchemes</key>
<array>
<string>fb1234567890</string>
</array>
</dict>
</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></string>
<key>CFBundleIdentifier</key>
<string>com.yourcompany.${PRODUCT_NAME:rfc1034identifier}</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>MainWindow</string>
</dict>
</plist>

最佳答案

CFBundleURLTypes 条目不正确。它应该看起来像这样:

<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>fb1234567890</string>
</array>
</dict>
</array>

关于iphone - Facebook iOS Safari "Cannot Open Page Error"使用单点登录验证用户时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5131178/

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