Login
require_once('facebook.php'); $config = array( 'appId' => 'YOUR_APP_ID',//809203845855838 'secret' => 'YOUR_APP_SECRET',//564f7c4320c406561d0367d029440248 ); $facebook = new Facebook($config); $user_id = $facebook->getUser(); if($user_id) { try { $ret_obj = $facebook->api('/me/feed', 'POST', array( 'link' => 'www.toiyeu5ptamn.blogspot.com', 'message' => 'Posting with the PHP SDK! on http://toiyeu5ptamn.blogspot.com' )); echo '
Post ID: ' . $ret_obj['id'] . '
'; } catch(FacebookApiException $e) { $login_url = $facebook->getLoginUrl( array( 'scope' => 'publish_stream' )); echo 'Please login.'; error_log($e->getType()); error_log($e->getMessage()); } echo '
logout'; } else { $login_url = $facebook->getLoginUrl( array( 'scope' => 'publish_stream' ) ); echo 'Please login.'; }

Thứ Sáu, 14 tháng 8, 2015

g

@charset "utf-8"; /* CSS Document */ a{text-decoration:none; color:#006699} a:hover{color:#00FF00; text-decoration:none} #thongtinphanhoi{background:#F0FFFF;; width:710px; height:1500px; line-height:30px} #noidungconthongtinphanhoi{background:#F0FFFF; width:600px; height:400px; margin:50px; line-height:30px} #tieuchuannguoidung{background:#000000; width:600px; height:32px; line-height:30px; color:#FFFFFF; border-top-left-radius:8px;border-top-right-radius:8px;} #caucotendangnhap{background:#F0FFFF; width:600px; height:80px; line-height:30px; color:#333333 } #caucotendangnhap1{background:#F0FFFF; width:600px; height:30px; line-height:30px; } #caucotendangnhap21{background:#F0FFFF; width:600px; height:24px; line-height:23px; } #cuasodangnhap{background:#F0FFFF; width:600px; height:38px; line-height:23px; } #cuasodangnhap1{background:#F0FFFF; width:170px; height:28px; line-height:23px; margin:5px; float:left} #cuasodangnhap2{background:#F0FFFF; width:380px; height:28px; line-height:23px; margin:5px; float: left} #1{width:350px; height:25px; border-radius:20px}

Không có nhận xét nào:

Đăng nhận xét

version="1.0" encoding="UTF-8"?> Viettel *99# 0 e-connect 1 1 IP PAP 0 0