Facebook Graph API 错误 - 未知路径组件

Facebook Graph API error - Unknown path components

我列出特定用户的 add_group_account id 的函数最终收到以下错误。

Message: Unknown path components: /adaccountgroups

我遵循这条准则Facebook API documentation

public function tp()
{ 
    
    $fb = new Facebook([ 
      'app_id' => "621201298943758",
      'app_secret' => "f0aa4ae743ef.................",
      'default_graph_version' => 'v2.5', 
      'default_access_token' => "EAAI0ZBrLB7w4BAIUyoGjSB50ZBsXbPxYfCjk6WxPQIa.................................",
     ]);
     
    
    try {
          // Returns a `Facebook\FacebookResponse` object
          $response = $fb->get(
            '/me/adaccountgroups',
            'EAAI0ZBrLB7w4BAIUyoGjSB50ZBs.....................'
          );
        } catch(Facebook\Exceptions\FacebookResponseException $e) {
          echo 'Graph returned an error: ' . $e->getMessage();
          exit;
        } catch(Facebook\Exceptions\FacebookSDKException $e) {
          echo 'Facebook SDK returned an error: ' . $e->getMessage();
          exit;
        }
        $graphNode = $response->getGraphNode();
     
}

正如我所发现的,即使在他们自己的文档中提到了名称“adaccountgroups”,也没有可用的端点或函数。

要获取与特定用户帐户相对应的添加帐户 ID,必须按以下模式调用它

卷曲

https://graph.facebook.com/v13.0/me/adaccounts?access_token=EAAI0ZBrLB7w...............

SDK

$response = $fb->get(
            '/me/adaccounts',
            '{token.....}'
          );