function onLogin(response) { if (response.status == 'connected') { FB.api('/me?fields=first_name', function(data) { var welcomeBlock = document.getElementById('fb-welcome'); welcomeBlock.innerHTML = 'Hello, ' + data.first_name + '!'; }); } } FB.getLoginStatus(function(response) { // Check login status on load, and if the user is // already logged in, go directly to the welcome message. if (response.status == 'connected') { onLogin(response); } else { // Otherwise, show Login dialog first. FB.login(function(response) { onLogin(response); }, {scope: 'user_friends, email'}); } }); <

"This is My Life"
                         

   Craig May

Donate
MORE TO READ

How To Deal With Betrayal

Craig May

04 Jun, 2016
data-ad-client="ca-pub-3278067188055389" data-ad-slot="3408336955" data-ad-format="auto">