从Facebook API获取选定的页面数据?

时间:2019-06-04 16:41:44

标签: reactjs facebook facebook-graph-api

我正在尝试在用户登录并选择要管理的授权页面后获取Facebook页面数据。

我当前正在使用react-facebook-login,但是我找不到如何获取页面数据,我想到了在字段中添加page_id,但是没有用,这是代码:

<FacebookLogin
            appId="2343254015907994"
            autoLoad={false}
            fields="name,email,picture"
            scope="manage_pages"
            callback={this.responseFacebook}
            textButton="Facebook"
            render={renderProps => (
              <Button onClick={renderProps.onClick} id="btnA" >Facebook  <Icon type="facebook" style={{color:"rgb(60,90,153)",fontSize:"2vw"}}></Icon></Button>  
            )}
          />

0 个答案:

没有答案