错误:由于地址无效,Safari无法打开页面? Facebook整合 [英] Error : Safari can't open the page because the address is invalid ? Facebook integration

查看:352
本文介绍了错误:由于地址无效,Safari无法打开页面? Facebook整合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将fb登录集成到我们自己的应用程序中. 问题是我下载的示例工作正常,当在我的项目中使用代码时出现错误

i am working on integrating fb login to our own application. Problem is example i downloaded it's working fine,when use the code in my project its getting error

注意:我检查了.plist中的 fbapplicationid ,并且在url页面中,它们都是相同的.

Note: I Checked the fbapplicationid in .plist and in the url page they both are same.

推荐答案

用户授权应用后. Facebook请求浏览器启动请求访问的应用程序.该网址基于App的网址方案(在App的plist中定义).因此,您需要仔细检查. Safari显示错误,因为它找不到url方案->无效的URL

After User authorizes the App. Facebook request the browser to launch the app that requested access. That url is based on App's url schemes ( defined in App's plist). So you need to double check that. Safari shows error because it cannot find the url scheme -> Invalid URL

它的格式类似于fb<myAppId>. 之后,进行项目的干净构建并运行.

it is of the form like fb<myAppId>. After that do a clean build of project and run.

这篇关于错误:由于地址无效,Safari无法打开页面? Facebook整合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆