Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function (d, s, id) {
- var js, fjs = d.getElementsByTagName(s)[0];
- if (d.getElementById(id)) {
- return;
- }
- js = d.createElement(s);
- js.id = id;
- js.src = "//connect.facebook.net/en_US/all.js";
- fjs.parentNode.insertBefore(js, fjs);
- }(document, 'script', 'facebook-jssdk'));
- window.fbAsyncInit = function () {
- FB.init({
- appId: 'APP-ID',
- status: true,
- cookie: true,
- xfbml: true,
- version: 'v2.0'
- });
- FB.getLoginStatus(function(loginResp)
- {
- $('#debug').append(JSON.stringify(loginResp)); // Debugging in FB Built-in browser
- console.log(loginResp);
- // The rest of this method is placed after this.
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement