{"id":72,"date":"2023-12-21T17:30:41","date_gmt":"2023-12-21T10:30:41","guid":{"rendered":"https:\/\/hr-vjc.vn\/?page_id=72"},"modified":"2024-01-07T10:15:07","modified_gmt":"2024-01-07T03:15:07","slug":"dang-nhap","status":"publish","type":"page","link":"https:\/\/hr-vjc.vn\/vi\/dang-nhap\/","title":{"rendered":"\u0110\u0103ng nh\u1eadp"},"content":{"rendered":"\n<!DOCTYPE html>\n<html>\n<head>\n<title>Facebook Login JavaScript Example<\/title>\n<meta charset=\"UTF-8\">\n<\/head>\n<body>\n\n<div id=\"fb-root\"><\/div>\n<script async defer crossorigin=\"anonymous\" src=\"https:\/\/connect.facebook.net\/vi_VN\/sdk.js#xfbml=1&#038;version=v18.0&#038;appId=670244055163982\" nonce=\"Fe0fbDwL\"><\/script>\n<script>\n\n  function statusChangeCallback(response) {  \n    console.log('statusChangeCallback');\n    console.log(response);                  \n    if (response.status === 'connected') {   \n      testAPI();  \n      document.cookie = \"fbLoggedIn=true; path=\/\";\n    } else {                                 \n      document.getElementById('status').innerHTML = 'Vui l\u00f2ng ' +\n        '\u0111\u0103ng nh\u1eadp v\u00e0o trang.';\n     document.cookie = \"fbLoggedIn=false; path=\/\";\n    }\n  }\n\n\n  function checkLoginState() {               \n    FB.getLoginStatus(function(response) {   \n      statusChangeCallback(response);\n    });\n  }\n\n\n  window.fbAsyncInit = function() {\n    FB.init({\n      appId      : '{670244055163982}',\n      cookie     : true,                     \n      xfbml      : true,                    \n      version    : '{v18.0}'          \n    });\n\n\n    FB.getLoginStatus(function(response) {   \n      statusChangeCallback(response);        \n    });\n  };\n \nfunction testAPI() {\n    console.log('Welcome!  Fetching your information.... ');\n    FB.api('\/me', function(response) {\n        console.log('Successful login for: ' + response.name);\n        document.getElementById('status').innerHTML =\n            'Xin ch\u00e0o b\u1ea1n, ' + response.name + '!';\n       window.userNameFromFacebook = \"Qu\u00e2n\";\n       window.frames[0].postMessage({ type: \"FB_NAME\", name: window.userNameFromFacebook }, '*');\n    });\n}\n\n<\/script>\n\n\n<!-- The JS SDK Login Button -->\n<fb:login-button scope=\"public_profile,email\" onlogin=\"checkLoginState();\">\n<\/fb:login-button>\n\n<div id=\"status\">\n<\/div>\n\n<script async defer crossorigin=\"anonymous\" src=\"https:\/\/connect.facebook.net\/en_US\/sdk.js\"><\/script>\n<\/body>\n<\/html>\n","protected":false},"excerpt":{"rendered":"<p>Facebook Login JavaScript Example<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-72","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/hr-vjc.vn\/vi\/wp-json\/wp\/v2\/pages\/72","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hr-vjc.vn\/vi\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/hr-vjc.vn\/vi\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/hr-vjc.vn\/vi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hr-vjc.vn\/vi\/wp-json\/wp\/v2\/comments?post=72"}],"version-history":[{"count":15,"href":"https:\/\/hr-vjc.vn\/vi\/wp-json\/wp\/v2\/pages\/72\/revisions"}],"predecessor-version":[{"id":419,"href":"https:\/\/hr-vjc.vn\/vi\/wp-json\/wp\/v2\/pages\/72\/revisions\/419"}],"wp:attachment":[{"href":"https:\/\/hr-vjc.vn\/vi\/wp-json\/wp\/v2\/media?parent=72"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}