를 사용하여 사용자가 인증되지 않거나 자바 스크립트 SDK 및 FB.getLoginStatus 전화 (https://developers.facebook.com/docs/reference/javascript/FB.getLoginStatus/)가 결정 귀하의 앱에.
FB.getLoginStatus(function(response) {
if (response.status === 'connected') {
// the user is logged in and connected to your
// app, and response.authResponse supplies
// the user's ID, a valid access token, a signed
// request, and the time the access token
// and signed request each expire
var uid = response.authResponse.userID;
var accessToken = response.authResponse.accessToken;
} else if (response.status === 'not_authorized') {
// the user is logged in to Facebook,
//but not connected to the app
} else {
// the user isn't even logged in to Facebook.
}
});