Created
July 20, 2016 21:23
-
-
Save flavioso16/66fbd0709170fb426f513c19fb6a37b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var script = document.createElement('script'); | |
script.src = 'https://apps.argos4.me/tool/scripts/facebook.js?v=1'; | |
script.onload = function () { | |
argosFacebookShare.init | |
({ | |
facebookAppKey: 516476338537845, | |
facebookAppID: 85, | |
segmentacao: 'Home', | |
authKey: 'jw4djrkpfgtd42t9' | |
classListener: 'argos-login', | |
callbackSuccessLogin: onSucessOptin, | |
callbackErrorLogin: onErrorOptin | |
}); | |
}; | |
document.head.appendChild(script); | |
function onSucessOptin(response) { | |
console.log('Optin success: ', response) | |
} | |
function onErrorOptin() { | |
console.log('Optin error'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment