0
내 상태 업데이트를 모두 가져 와서 내 앱에 표시하려고합니다. OAuth 토큰을 데이터베이스에 저장했습니다.FQL - "이 리소스를 사용하려면 액세스 토큰이 필요합니다."
https://graph.facebook.com/fql?q=SELECT+uid%2Ctime%2Cmessage+FROM+status+WHERE+uid+%3D+me%28%29&293721510781740|
가이 오류가 발생합니다 :
이 코드는 데이터베이스에서 access_token이를 검색하고, 위의 코드가 실행 된 후
include ('fbconfig.php');
include ('inc/facebook.php');
// make new facebook object
$facebook = new Facebook(array(
'appId' => APP_ID,
'secret' => APP_SECRET,
'cookie' => true
));
$username = $_SESSION['username'];
// get the access token from database
$sql = "SELECT fb_token FROM users";
$query = mysqli_query($db_conx,$sql);
$row = mysqli_fetch_array($query);
$access_token = $row[0];
// fql query to get fb status updates
$fql = "SELECT uid,time,message FROM status WHERE uid = me()";
// construct query url
$fql_query_url = "https://graph.facebook.com"
. "/fql?q=" . urlencode($fql)
. '&' . $access_token;
echo $fql_query_url;
를 조회하기 위해 URL을 구축,이 URL을 출력 링크를 클릭합니다 (URL에 access_token이 있음에도 불구하고).
나는 이것에 대해 여러 가지 변형을 한 시간 동안이 일을 해왔고, 왜 내 상태를 검색하지 않는지 이해할 수 없다.
감사합니다 :) 나는 그것을 받아 들일 수 있습니다. – jsmos