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'}); } });
 

Sunday, March 9, 2014

ෆේස්බුක් තහනම් කල යුතුය



මේ ෆේස්බුක් කියන්නේ නම් අපේ රටට ආපු මහාම මහ පිල්ලුවක්. ඔය ඇමරිකාව වගේ අධිරාජ්‍යවාදී රටවල් අපේ වගේ පුංචි රටවල් අල්ලගෙන ඒවායේ සදාචාරය, සංස්කෘතිය විනාස කරලා දාලා බටහිර සංස්කෘතිය වපුරවන්න හදපු නව යටත් විජිත වාදී උගුලක් ඕක. මම නම් කියන්නේ කවුරු කොහොම විරුද්ධ උනත් ඔය මඟුල මේ දැන්මම තහනම් කරලා දාන්න ඕන.