如何获取页面的 'about' 部分
How to get the 'about' section of a Page
这是我的代码,但我得到 'about is not defined':
FB.api(
"/barackobama?fields=about",
function (response) {
if (response && !response.error) {
console.log(about);
}
});
也许尝试使用正确的语法:
FB.api('/barackobama', {fields: 'about'}, function(response) {
...
}
来源:https://developers.facebook.com/docs/javascript/reference/FB.api
这是我的代码,但我得到 'about is not defined':
FB.api(
"/barackobama?fields=about",
function (response) {
if (response && !response.error) {
console.log(about);
}
});
也许尝试使用正确的语法:
FB.api('/barackobama', {fields: 'about'}, function(response) {
...
}
来源:https://developers.facebook.com/docs/javascript/reference/FB.api