function statusChangeCallback(response) { // Called with the results from FB.getLoginStatus(). console.log('statusChangeCallback'); console.log(response); // The current login status of the person. if (response.status === 'connected') { // Logged into your webpage and Facebook. testAPI(); } else { // Not logged into your webpage or we are unable to tell. document.getElementById('status').innerHTML = 'Please log ' + 'into this webpage.'; } } function checkLoginState() { // Called when a person is finished with the Login Button. FB.getLoginStatus(function(response) { // See the onlogin handler statusChangeCallback(response); }); } window.fbAsyncInit = function() { FB.init({ appId : '265328355212801', xfbml : true, version : 'v2.8' }); FB.getLoginStatus(function(response) { // Called after the JS SDK has been initialized. statusChangeCallback(response); // Returns the login status. }); }; (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 = "https://connect.facebook.net/en_US/sdk.js"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); function testAPI() { // Testing Graph API after login. See statusChangeCallback() for when this call is made. console.log('Welcome! Fetching your information.... '); FB.api('/me', function(response) { console.log('Successful login for: ' + response.name + ' email : ' + response.email); $('.status').html(''+'Thanks for logging in, ' + response.name + '!'); }); } */?>

TỔ YẾN KHÁNH HÒA - SÂM HÀN QUỐC - ĐÔNG TRÙNG - AN CUNG - LINH CHI
Hotline: 0909 227 486 | Giờ làm việc: 8h00AM - 21h00PM
CHÍNH HÃNG
Không Hàng Giả
CAM KẾT
Phục Vụ Tận Tâm
AN TÂM
Giá Luôn Tốt Nhất
Đăng nhập Quên mật khẩu
Vui lòng nhập tài khoản
Vui lòng nhập mật khẩu
Bạn chưa có tài khoản ! Đăng ký
0
Zalo
Hotline
messenger
x

Chào mừng đến với chương trình khách hàng thân thiết

Hãy đăng nhập ngay để xem những ưu đãi hiện đang có của bạn!
đăng nhập
Chưa có tài khoản ? Đăng ký ngay
*/?> */?>
*/?>