如何获取页面的 '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); 
  }
});

适合我:https://developers.facebook.com/tools/explorer/?method=GET&path=barackobama%3Ffields%3Dabout&version=v2.5

也许尝试使用正确的语法:

FB.api('/barackobama', {fields: 'about'}, function(response) {
    ...
}

来源:https://developers.facebook.com/docs/javascript/reference/FB.api