简体   繁体   English

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

[英]Facebook integration in cross-platform mobile apps

I am using Parse for JavaScript, and is working with the ionic framework within the Intel XDK. 我正在使用Parse for JavaScript,并且正在使用Intel XDK中的离子框架。

I am trying to incorporate social media login, where users are able to signin using facebook. 我正在尝试合并社交媒体登录,用户可以使用Facebook登录。

I generally know how to navigate this but my main concern is the following: I am using facebook for javascript where it requires a URL, and when that URL is not accessible it doesn't work. 我一般都知道如何导航这个,但我主要关注的是:我使用facebook进行javascript,它需要一个URL,当这个URL不可访问时,它不起作用。 Hence, on an iphone or android I cant use facebook yet. 因此,在iPhone或Android上我还不能用facebook。

The specific error I get is the following: 我得到的具体错误如下:

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.

What have I done as far? 到目前为止我做了什么? I went over the following guide thoroughly: http://www.benjamin.my/how-to-set-up-facebook-connect-plugin-and-parse-com-in-ionic-phonegap/ 我彻底浏览了以下指南: http//www.benjamin.my/how-to-set-up-facebook-connect-plugin-and-parse-com-in-ionic-phonegap/

It does mention near the end of the guide that 它确实提到了指南的末尾

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

and this is the part where I am having issues, and for a while. 这是我遇到问题的部分,有一段时间了。

Have you set <access origin="*" /> in your config.xml so you can access all external domains? 您是否在config.xml中设置了<access origin="*" /> ,以便访问所有外部域?

See the cordova whitelist guide for more information on the subject. 有关此主题的更多信息,请参阅cordova白名单指南

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM