GroupMessage
GET /v24.0/{group-message-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-message-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-message-id}",
function (response) {
if (response && !response.error) {
/* handle the result */
}
}
);/* make the API call */
new GraphRequest(
AccessToken.getCurrentAccessToken(),
"/{group-message-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-message-id}"
parameters:params
HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
id result,
NSError *error) {
// Handle the result
}];| Field | Description |
|---|---|
idtoken with structure: Post ID | id |
actionslist | actions |
admin_creatorBusinessUser|User|Application | admin_creator |
allowed_advertising_objectiveslist<string> | allowed_advertising_objectives |
application | application |
backdated_timedatetime | backdated_time |
call_to_actionstruct with keys: type, value | call_to_action |
can_reply_privatelybool | can_reply_privately |
captionstring | caption |
child_attachmentslist | child_attachments |
comments_mirroring_domainstring | comments_mirroring_domain |
coordinatesstruct with keys: checkin_id, author_uid, page_id, target_id, target_href, coords, tagged_uids, timestamp, message, target_type | coordinates |
created_timedatetime | created_time |
descriptionstring | description |
event | |
expanded_heightunsigned int32 | expanded_height |
expanded_widthunsigned int32 | expanded_width |
feed_targetingstruct with keys: country, cities, regions, genders, age_min, age_max, education_statuses, college_years, relationship_statuses, interests, interested_in, user_adclusters, locales, countries, geo_locations, work_positions, work_employers, education_majors, education_schools, family_statuses, life_events, industries, politics, ethnic_affinity, generation, fan_of, relevant_until_ts | feed_targeting |
fromUser|Page | from |
full_picturestring | full_picture |
heightunsigned int32 | height |
iconstring | icon |
is_app_sharebool | is_app_share |
is_eligible_for_promotionbool | is_eligible_for_promotion |
is_expiredbool | is_expired |
is_hiddenbool | is_hidden |
is_inline_createdbool | is_inline_created |
is_popularbool | is_popular |
is_publishedbool | is_published |
is_sphericalbool | is_spherical |
linkuri | link |
messagestring | message |
message_tagslist | message_tags |
multi_share_end_cardbool | multi_share_end_card |
multi_share_optimizedbool | multi_share_optimized |
namestring | name |
object_idstring | object_id |
parent_idtoken with structure: Post ID | parent_id |
permalink_urluri | permalink_url |
place | place |
privacy | privacy |
token with structure: Post ID | promotable_id |
propertieslist | properties |
scheduled_publish_timefloat | scheduled_publish_time |
sharesstruct with keys: count | shares |
sourcestring | source |
status_typestring | status_type |
storystring | story |
story_tagslist | story_tags |
subscribedbool | subscribed |
target | |
targetingstruct with keys: country, cities, regions, zips, genders, college_networks, work_networks, age_min, age_max, education_statuses, college_years, college_majors, political_views, relationship_statuses, interests, keywords, interested_in, user_clusters, user_clusters2, user_clusters3, user_adclusters, excluded_user_adclusters, custom_audiences, excluded_custom_audiences, locales, radius, connections, excluded_connections, friends_of_connections, countries, excluded_user_clusters, adgroup_id, user_event, qrt_versions, page_types, user_os, user_device, action_spec, action_spec_friend, action_spec_excluded, geo_locations, excluded_geo_locations, targeted_entities, conjunctive_user_adclusters, wireless_carrier, site_category, work_positions, work_employers, education_majors, education_schools, family_statuses, life_events, behaviors, travel_status, industries, politics, markets, income, net_worth, home_type, home_ownership, home_value, ethnic_affinity, generation, household_composition, moms, office_type, interest_clusters_expansion, dynamic_audience_ids, product_audience_specs, excluded_product_audience_specs, exclusions, flexible_spec, engagement_specs, excluded_engagement_specs | targeting |
timeline_visibilitystring | timeline_visibility |
typestring | type |
updated_timedatetime | updated_time |
viaUser|Page | via |
widthunsigned int32 | width |
| Edge | Description |
|---|---|
Edge<StoryAttachment> | attachments |
Edge<Comment> | comments |
Edge<RTBDynamicPost> | dynamic_posts |
Edge<InsightsResult> | insights |
Edge<Profile> | reactions |
Edge<Post> | sharedposts |
Edge<Page> | sponsor_tags |
Edge<Profile> | to |
| Error | Description |
|---|---|
| 368 | The action attempted has been deemed abusive or is otherwise disallowed |
| 190 | Invalid OAuth 2.0 Access Token |
| 100 | Invalid parameter |
| 200 | Permissions error |
| 459 | The session is invalid because the user has been checkpointed |
| 2500 | Error parsing graph query |