| Server IP : 172.67.216.113 / Your IP : 104.23.243.32 [ Web Server : Apache System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64 User : cp648411 ( 1354) PHP Version : 7.2.34 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/cp648411/www/simded.com/wallpaper/member/ |
Upload File : |
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Login</title>
</head>
<body>
<h1>log</h1>
<div id="name_fb"></div>
<div id="id_fb"></div>
<button type="button" name="button" onclick="logOut()">logOut</button>
<button type="button" name="button" onclick="login()">main</button>
<script src="https://static.line-scdn.net/liff/edge/versions/2.3.0/sdk.js"></script>
<script>
async function main(){
await liff.init({ liffId: '1657386444-2Vy4dmp9' })
if(liff.isLoggedIn()) {
getUserProfile()
} else {
liff.login()
}
}
// main()
function login() {
main()
}
async function getUserProfile() {
const profile = await liff.getProfile()
var namez = profile.displayName;
var idz = profile.statusMessage;
console.log(profile);
// window.location.href='checkfb.php?id='+idz+'&name='+namez;
}
function logOut() {
liff.logout()
window.location.reload()
}
</script>
</body>
</html>