如果用户在特定的 facebook 组中,则反应 facebook 权限

React facebook permisions if user is in a specific facebook group

想使用他的 facebook 详细信息将用户注册到数据库,但只有在特定的 facebook 组中才允许他注册任何建议 能够获取用户的基本详细信息(姓名、姓氏、电子邮件等),怀疑我应该在获得许可的情况下做一些事情但阅读了文档但仍然卡住了

<FacebookLogin
          appId="304489330816284"
          autoLoad={false}
          fields="name,email,picture"
          onClick={this.componentClicked}
          callback={this.responseFacebook}
          scope="public_profile,user_friends"
          render={renderProps => (
            <button onClick={renderProps.onClick}>Register with Facebook</button>
          )}
        />

尝试对 /me/groups 端点使用 user_groups 权限来读取用户组:https://developers.facebook.com/docs/graph-api/reference/user/groups/