[英]Phonegap Facebook connect plugin settings
我正在使用phonegap插件將其連接到Facebook: https : //github.com/phonegap-build/FacebookConnect
我對Facebook應用程序設置感到困惑,當我調用FB.init()時收到以下錯誤消息:
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.
我將使用Facebook登錄名(網站URL)的網站編輯為:http:// localhost /(沒有課程空間,我只添加了它,因為stackoverflow不允許其中帶有“ localhost”的鏈接),我等待了幾分鍾(更多超過一天),但它仍然無法正常工作。
知道如何使它起作用嗎?
謝謝
您需要設置幾個設置。
這些設置對我來說適用於Phonegap Build環境。
在本機Android應用程序下 :
其他步驟:
http://localhost/
。 如果您擁有真實的網站(使用Facebook登錄),那么這里就是放置真實網站URL的地方。 Write this code in onDeviceReady after creating your application id on facebook
FB.init({
appId: "<your appId>",
nativeInterface: CDV.FB
});
在facebook上,您的應用設置將“使用Facebook登錄的網站”設置為
http://localhost/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.