且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Ionic 2 Facebook 登录 - 'App Not Setup' &'未登录' &“不允许给定 URL"错误

更新时间:2022-12-07 14:42:52

我修好了!最后,我的应用程序在 Facebook API 上正确配置,Sampath 的实现就像一个魅力.这是我的问题:

I fixed it! In the end, my app was configured properly on the Facebook API, and the implementation by Sampath worked like a charm. Here was my issue:

一直以来,我一直在 MacBook 上的 iCloud Drive 中的一个目录中运行 Ionic 2 应用程序.由于 iCloud 不断更新任何小的文件更改,我永远无法使用 ionic build ios 进行完整的 iOS 构建,并且不得不使用 ^C 提前退出.通过将我的项目保存在我的 iCloud 驱动器之外的目录中,在本例中是用户名下的目录,我能够毫无错误地进行完整的构建!

The entire time, I had been running the Ionic 2 app off a directory in my iCloud Drive on my MacBook. Since iCloud consistently updates any minor file changes, I was never able to do a complete iOS build using ionic build ios, and had to exit early using ^C. By keeping my project in a directory outside my iCloud drive, which in this case was the directory under the username, I was able to do a complete build with no errors!

简而言之,查看 Sampath 的解决方案代码,并确保您没有在 iCloud Drive 上运行您的 Ionic 2 项目.

In short, check out Sampath's solution code, and make sure you are not running your Ionic 2 project off iCloud Drive.