Error : Safari can't open the page because the

2019-03-13 20:34发布

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.

enter image description here

2条回答
走好不送
2楼-- · 2019-03-13 21:09

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.

查看更多
爷、活的狠高调
3楼-- · 2019-03-13 21:09

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

查看更多
登录 后发表回答