标签: 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