Skip to content

Instantly share code, notes, and snippets.

@flavioso16
Last active July 13, 2016 21:49
Show Gist options
  • Save flavioso16/96eaf2e10aa3f68462576aedcbbe9c77 to your computer and use it in GitHub Desktop.
Save flavioso16/96eaf2e10aa3f68462576aedcbbe9c77 to your computer and use it in GitHub Desktop.
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