グラフAPIバージョン

グループドキュメント/{group-doc-id}

Facebookグループ内のドキュメントを表します。/{group-doc-id}ノードは単一のドキュメントを返します。

読み取り

グラフAPIエクスプローラ
GET /v24.0/{group-doc-id} 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(
 '/{group-doc-id}',
 '{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(
 "/{group-doc-id}",
 function (response) {
 if (response && !response.error) {
 /* handle the result */
 }
 }
);
/* make the API call */
new GraphRequest(
 AccessToken.getCurrentAccessToken(),
 "/{group-doc-id}",
 null,
 HttpMethod.GET,
 new GraphRequest.Callback() {
 public void onCompleted(GraphResponse response) {
 /* handle the result */
 }
 }
).executeAsync();
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
 initWithGraphPath:@"/{group-doc-id}"
 parameters:params
 HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
 id result,
 NSError *error) {
 // Handle the result
}];

フィールド

プロパティ名 説明

id

グループドキュメントのID。

string

from

このドキュメントを作ったプロフィール。

User |Page

subject

ドキュメントのタイトル。

string

message

ドキュメントの本文。この文字列には、ドキュメント内の任意のフォーマット用HTML が含められ、HTMLでエンコードされます。

string

icon

ドキュメントのアイコンのURL

string

created_time

ドキュメント作成日時。

datetime

updated_time

ドキュメントの最終更新時。

datetime

revision

現在のドキュメントの改訂を表すID。

int

can_edit

セッションユーザーがこのドキュメントを編集できるかどうか。

boolean

can_delete

セッションユーザーがこのドキュメントを(Facebook.comで)削除できるかどうか。

boolean

embedded_urls

ドキュメント埋め込み用URL

[string]

公開

グラフAPIでドキュメントを作成することはできません。

削除

グラフAPIでドキュメントを削除することはできません。

更新

グラフAPIでドキュメントを更新することはできません。

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