是否可以使用 JavaScript SDK 限制从 Facebook 的 Batch 请求 API 返回的字段?例如:
FB.api('/', 'POST', {
batch: [
{ method: 'GET', relative_url: 'me'},
...
]
}, function (response) {
console.log(response);
});
上面批处理请求的第一个方法返回完整的用户图。但是,如果我只想获取几个字段(例如 first_name 和 last_name)怎么办。像这样的东西会很好,但不起作用:
batch: [
{ method: 'GET', relative_url: 'me', fields: 'first_name,last_name'},
...
]