mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-27 06:23:41 -04:00
Set up Facebook to work when working on localhost.
This commit is contained in:
parent
6e9daf59c9
commit
431d3054b6
1 changed files with 2 additions and 2 deletions
|
@ -76,8 +76,8 @@
|
|||
// Additional JS functions here
|
||||
window.fbAsyncInit = function() {
|
||||
FB.init({
|
||||
appId : '148832601965463', // App ID
|
||||
channelUrl : 'http://codecombat.com/channel.html', // Channel File
|
||||
appId : document.location.origin === 'http://localhost:3000' ? '607435142676437' : '148832601965463', // App ID
|
||||
channelUrl : document.location.origin +'/channel.html', // Channel File
|
||||
status : true, // check login status
|
||||
cookie : true, // enable cookies to allow the server to access the session
|
||||
xfbml : true // parse XFBML
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue