2014-03-06 37 views
-1

我創建了一個在瀏覽器中運行的HTML5遊戲。我想添加Facebook登錄,並從教程中拷貝了內容,並替換爲我的appId。我的Facebook登錄的域名問題

當我運行它,它指出:

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. 

的問題,這裏是我沒有一個域名下運行呢?我的遊戲現在只是在Chrome中本地運行,但是我想用移動設備(android,ios,wp)使用Phonegap或其他東西來包裝它

+0

https://www.google.com/search?q=phonegap+facebook+login – CBroe

+0

將[這裏](HTTP://www.androidhive .info/2012/03/android-facebook-connect-tutorial /)有幫助嗎? –

回答

0

您是在localhost中運行它嗎? 檢查這個職位的更多信息,它可以幫助你: Local Facebook App Development using localhost

+0

我正在運行localhost yes。正如我所說的,我現在在Chrome中進行開發和測試,但目標是創建一個Android應用程序。我不能這樣做的JavaScript登錄?它只支持網站? – Jason94