Created
April 21, 2017 13:54
-
-
Save kennethlarsen/7deca0fc6db444532370955fe4f30556 to your computer and use it in GitHub Desktop.
This was used alongside with leaked APP_ID from information.dk to create login outside of their control
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
<html> | |
<head> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script> | |
<title>Facebook login</title> | |
<script> | |
$(document).ready(function() { | |
$.ajaxSetup({ cache: true }); | |
$.getScript('//connect.facebook.net/en_US/sdk.js', function(){ | |
FB.init({ | |
appId: 'APP_ID', | |
version: 'v2.7' // or v2.1, v2.2, v2.3, ... | |
}); | |
}).then((data) => { | |
FB.login(function(response) { | |
if (response.authResponse) { | |
console.log('Welcome! Fetching your information.... '); | |
FB.api('/me', function(response) { | |
console.log('Good to see you, ' + response.name + '.'); | |
console.log(response); | |
}); | |
} else { | |
console.log('User cancelled login or did not fully authorize.'); | |
} | |
}); | |
}); | |
}); | |
</script> | |
<div class="fb-login-button" data-max-rows="1" data-size="large" data-button-type="continue_with" data-show-faces="false" data-auto-logout-link="false" data-use-continue-as="false"></div> | |
</head> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment