以下の例を見てください。
シナリオ 1 と 3 は明らかですが、私の質問は次のとおりです。
シナリオ#2が有効である可能性はありますか?つまり、接続済み - ただし、アクセス許可は与えられていません。
ありがとう。
--
コード:
FB.login(function(response) {
if (response.session) {
if (response.perms) {
// #1 user is logged in and granted some permissions.
} else {
// #2 user is not logged in OR user is logged in, but did not grant any permissions
}
} else {
// #3 user is not logged in
}
}
}