Last active
July 13, 2016 21:49
-
-
Save flavioso16/96eaf2e10aa3f68462576aedcbbe9c77 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: 494807850687931, | |
facebookAppID: 77, | |
segmentacao: 'SocialLogin', | |
authKey: 'cddkxrdajfhto6r', | |
classListener: 'argos-login', | |
callbackSuccessLogin: onSucessOptin, | |
callbackErrorLogin: onErrorOptin, | |
welcomeMeta: { | |
message: 'Oie, que bom ter você por aqui! Seu desconto já está ativo, quer usar? É só clicar aqui :)', | |
link: 'https://apps.facebook.com/the_beauty_box/' | |
} | |
}); | |
}; | |
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