Facebook在跨平台移动应用程序中的集成

Facebook integration in cross-platform mobile apps

本文关键字:集成 应用程序 移动 跨平台 Facebook      更新时间:2023-09-26

我正在使用Parse for JavaScript,并在英特尔XDK中使用ionic框架。

我正在尝试加入社交媒体登录,用户可以使用facebook登录。

我通常知道如何应对这种情况,但我主要关心的问题如下:我使用facebook进行javascript,因为它需要一个URL,而当该URL不可访问时,它就不起作用。因此,在iphone或android上,我还不能使用facebook。

我得到的具体错误如下:

Warning
Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.

到目前为止我做了什么我仔细阅读了以下指南:http://www.benjamin.my/how-to-set-up-facebook-connect-plugin-and-parse-com-in-ionic-phonegap/

它确实在指南的末尾提到

You may have to add an iOS setting or Android setting too eventually when you deploy to either platform.

这是我有问题的地方,而且有一段时间。

您是否在config.xml中设置了<access origin="*" />,以便可以访问所有外部域?

有关该主题的更多信息,请参阅cordova白名单指南。