Error : Safari can't open the page because the address is invalid ? Facebook integration

此生再无相见时 提交于 2019-12-03 09:53:25

问题


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

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


回答1:


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

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




回答2:


Friends ,when ever you are trying FBlogin to your application ,dn't forget to check .plist

Must verify before you exegete

1.FBapplication ID

2.URLSchemas



来源:https://stackoverflow.com/questions/15738219/error-safari-cant-open-the-page-because-the-address-is-invalid-facebook-int

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!