페이스 북의 로그인 상태를 확인하기 위해 다음 코드를 작성했습니다. response.authResponse is null
FB.getLoginStatus(function(response) {
if (response.status === 'connected') {
var user_id = response.authResponse.userID;
var page_id = "app_id";
var fql_query = "SELECT uid FROM page_fan WHERE page_id = "+page_id+"and uid="+user_id;
var the_query = FB.Data.query(fql_query);
the_query.wait(function(rows) {
if (rows.length == 1 && rows[0].uid == user_id) {
alert("liked the page");
}
else {
alert("not liked ");
}
});
}
else if (response.status === 'not_authorized') {
}
else
{
alert("not logged in");
}
});
if (response.status === 'connected') {}
일부 섹션 즉하지만 난
else if (response.status === 'not_authorized') {}
부분에
response.authResponse
널을 얻고 있다면 내가 먼저
response.authResponse
에 대한 값을 얻고
,
사람은 그것에 대해 어떤 생각을해야합니까?도와주세요. 당신이 연결되지 않은 경우이 논리적 보인다 허가하지 않은 것 때문에
signed_request는 정말 트릭을 만들었습니다. DMCS에게 감사드립니다. – mack