Last active
July 20, 2016 21:36
-
-
Save flavioso16/1c1643ba74f43bdd3995d6d31bfe25c8 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
function cadastrarUsuario() { | |
argosFacebookShare.login(function (response) { | |
var segmentacoes = ['Gestão', 'Educação'] | |
argosFacebookShare.optin(response, segmentacoes, function (response) { | |
console.log('Optin success: ', response) | |
}); | |
}); | |
} |
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 = 'http://apps.argos4.me/tool/scripts/facebook.js?v=1'; | |
script.onload = function () { | |
argosFacebookShare.init | |
({ | |
facebookAppKey: 516476338537845, | |
facebookAppID: 85, | |
segmentacao: 'Home', | |
authKey: 'jw4djrkpfgtd42t9' | |
}); | |
}; | |
document.head.appendChild(script); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment