Error : Safari can't open the page because the

2019-03-13 20:55发布

问题:

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