我使用PhoneGap的插件連接到Facebook 這一個:https://github.com/phonegap-build/FacebookConnect的PhoneGap連接Facebook插件設置
我感到困惑的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登錄(網站網址)指向:http://本地主機/(無空間ofcourse我只加它,因爲計算器不允許在它的「localhost」的鏈接)和我等了幾分鐘(超過一天)纔開始工作,但仍然無法工作。
任何想法我怎麼才能讓它工作?
感謝在Facebook上EIT
你有沒有嘗試這個版本,它可能允許更多的定製。 https://github.com/phonegap/phonegap-facebook-plugin – Blynn
我注意到它試圖發送到Facebook的url是file:// android_assets/www/[file_name_here]。我還沒有解決我應用程序中的問題,但是當我更改FB.init({})代碼以匹配https://github.com/phonegap-build/FacebookConnect/blob/master/example/Simple/index .html錯誤消失了。 –
有沒有解決這個問題?有相同的問題... – K2xL