/{group-doc-id}
Represents a doc within a Facebook group. The /{group-doc-id}
node returns a single doc.
GET /v21.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
}];
OPEN
)Property Name | Description | Type |
---|---|---|
| The group doc ID. |
|
| The profile that created this doc. | |
| The title of the doc. |
|
| The body of the doc. This string will contain HTML for any formatting in the doc, and will be HTML encoded. |
|
| The URL for the doc's icon |
|
| When the doc was created. |
|
| The last time the doc was changed. |
|
| An ID representing the current doc revision. |
|
| Whether the session user can edit this doc. |
|
| Whether the session user can delete this doc (on Facebook.com). |
|
| URLs for document embeds |
|
You cannot create docs via the Graph API.
You cannot delete docs via the Graph API.
You cannot update docs via the Graph API.