Skip to content

Instantly share code, notes, and snippets.

@flavioso16
Last active August 23, 2016 18:55
Show Gist options
  • Save flavioso16/b6eab0d9749d4bb44fa62d8d0d34fd06 to your computer and use it in GitHub Desktop.
Save flavioso16/b6eab0d9749d4bb44fa62d8d0d34fd06 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: 1842803592606188,
facebookAppID: 88,
segmentacao: 'Home',
authKey: '5h0e6sxuu40a4i'
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