Skip to content

Instantly share code, notes, and snippets.

@flavioso16
Created July 20, 2016 21:23
Show Gist options
  • Save flavioso16/66fbd0709170fb426f513c19fb6a37b1 to your computer and use it in GitHub Desktop.
Save flavioso16/66fbd0709170fb426f513c19fb6a37b1 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: 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