0

"/me" が undefined を返すという投稿がたくさんありますが、解決策が見つかりませんでした。

response.status が接続されているため、ユーザーはログインしています。ただし、/me を呼び出すと「未定義」が返されます。

コードスニペット:

if (response.status === 'connected') {
// The response object is returned with a status field that lets the app know the current
// login status of the person. In this case, we're handling the situation where they 
// have logged in to the app.

FB.api('/me', function(info) {
alert("facebook:"+info.id);

});   
4

0 に答える 0