グラフAPIバージョン

Business Client Apps

読み取り

This business can access these client-owned apps.

Graph API Explorer
GET /v24.0/{business-id}/client_apps HTTP/1.1
Host: graph.facebook.com
/* PHP SDK v5.0.0 */
/* make the API call */
try {
 // Returns a `Facebook\FacebookResponse` object
 $response = $fb->get(
 '/{business-id}/client_apps',
 '{access-token}'
 );
} 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();
/* handle the result */
/* make the API call */
FB.api(
 "/{business-id}/client_apps",
 function (response) {
 if (response && !response.error) {
 /* handle the result */
 }
 }
);
/* make the API call */
new GraphRequest(
 AccessToken.getCurrentAccessToken(),
 "/{business-id}/client_apps",
 null,
 HttpMethod.GET,
 new GraphRequest.Callback() {
 public void onCompleted(GraphResponse response) {
 /* handle the result */
 }
 }
).executeAsync();
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
 initWithGraphPath:@"/{business-id}/client_apps"
 parameters:params
 HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
 id result,
 NSError *error) {
 // Handle the result
}];
グラフAPIを使用する方法については、グラフAPIの使用ガイドをご覧ください。

パラメーター

このエンドポイントにはパラメーターがありません。

項目

このエッジからの読み込むではJSONフォーマットの結果が返されます:

{ "data": [], "paging": {}, "summary": {} }

data

Applicationノードの一覧です。

各ノードに以下のフィールドが追加されます:

フィールド説明
permitted_tasks
list<string>

Tasks that are assignable to users on this asset

paging

ページネ―ションについて詳しくは、グラフAPIガイドをご覧ください。

summary

エッジの集計情報(数値など)。サマリーパラメータで取得するフィールドを指定します(サマリー=total_countなど)。

フィールド説明
total_count
int32

Total number of apps.

エラーコード

エラー詳細
200Permissions error

作成

client_appsのエッジにPOSTリクエストを以下のパスで送信できます:
このエッジにPOSTする場合、an Applicationが作成されます。

パラメーター

パラメーター説明
app_id

App ID.

必須

戻り値の型

This endpoint supports read-after-write and will read the node to which you POSTed.
Struct {
access_status: enum,
}

エラーコード

エラー詳細
100Invalid parameter

更新中...

このエンドポイントではこの操作を実行できません。

削除中です

このエンドポイントではこの操作を実行できません。

AltStyle によって変換されたページ (->オリジナル) /