Facebook JS图片领域总是未定义的

时间:2014-05-31 17:34:55

标签: javascript facebook

我无法弄清楚为什么api通话不会返回用户的图片网址。我知道它必须是超级简单的我失踪的东西。

id和名称返回完美。

FB.api('/me', { fields: 'id, name, picture' },  function(response) {
alert("<img src="+response.picture+"/>"+response.name);
});

输出:

<img src=undefined/>John Smith

0 个答案:

没有答案