Appearance
Fresh 2026
User Accounts
The Facebook Pages that a person owns or is able to perform tasks on.
Reading
Pages the User has a role on
Example
HTTPPHP SDKJavaScript SDKAndroid SDKiOS SDK Graph API Explorer
GET /v25.0/{user-id}/accounts 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(
'/{user-id}/accounts',
'{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(
"/{user-id}/accounts",
function (response) {
if (response && !response.error) {
/* handle the result */
}
}
);/* make the API call */
new GraphRequest(
AccessToken.getCurrentAccessToken(),
"/{user-id}/accounts",
null,
HttpMethod.GET,
new GraphRequest.Callback() {
public void onCompleted(GraphResponse response) {
/* handle the result */
}
}
).executeAsync();/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]\
initWithGraphPath:@"/{user-id}/accounts"\
parameters:params\
HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,\
id result,\
NSError *error) {\
// Handle the result\
}];If you want to learn how to use the Graph API, read our Using Graph API guide.
Parameters
| Parameter | Description |
|---|---|
ad_id<br>numeric string or integer | Filter pages by a specific ad id |
is_place<br>boolean | If specified,filter pages based on whetherthey are places or not |
is_promotable<br>boolean | If specified, filter pages based on whether they can be promoted or not |
Fields
Reading from this edge will return a JSON formatted result:
{
"data": [],
"paging": {},
"summary": {}
}data
A list of Page nodes.
The following fields will be added to each node that is returned:
| Field | Description |
|---|---|
tasks<br>list<enum> | The User's tasks assigned to the Page.<br>Default |
paging
For more details about pagination, see the Graph API guide.
summary
Aggregated information about the edge, such as counts. Specify the fields to fetch in the summary param (like summary=total_count).
| Field | Description |
|---|---|
total_count<br>int32 | Total number of objects on this edge<br>Default |
Error Codes
| Error | Description |
|---|---|
| 459 | The session is invalid because the user has been checkpointed |
| 190 | Invalid OAuth 2.0 Access Token |
| 200 | Permissions error |
| 100 | Invalid parameter |
| 368 | The action attempted has been deemed abusive or is otherwise disallowed |
| 80001 | There have been too many calls to this Page account. Wait a bit and try again. For more info, please refer to https://developers.facebook.com/docs/graph-api/overview/rate-limiting. |
| 80002 | There have been too many calls to this Instagram account. Wait a bit and try again. For more info, please refer to https://developers.facebook.com/docs/graph-api/overview/rate-limiting. |
| 483 | The session is invalid because the user is in consent app blocking |
| 283 | That action requires the extended permission pages_read_engagement and/or pages_read_user_content and/or pages_manage_ads and/or pages_manage_metadata |
| 2500 | Error parsing graph query |
Creating
This API lets you create Facebook pages.
Permissions
A User access token with
pages_manage_metadataandpages_show_listpermissions.The
category_enumparameter with a Page Category.Other requirements vary depending on the type of page you are creating but may require the following parameters:
name,about,picture, andcover_photo.
Note: When setting the locale, at least one, city_id, location, or coordinates, is required. Caveats:
city_idandlocationcan not be used togethercity_idandcoordinatescan be used together however the coordinates must be within the city selectedlocationandcoordinatescan be used together however the coordinates must be within the location selected
Limitations
- You can only create a Page as a test user or if your app has been allowlisted by your Facebook representative.
You can make a POST request to accounts edge from the following paths:
/{user_id}/accounts
When posting to this edge, no Graph object will be created.
Parameters
| Parameter | Description |
|---|---|
about<br>UTF-8 encoded string | Short description |
address<br>UTF-8 encoded string | Address |
category_enum<br>string | Page category (enum). See Pages Categories API docs. |
category_list<br>list<numeric string> | List of categories |
city_id<br>city id | City ID |
coordinates<br>JSON-encoded coordinate list | Coordinates |
cover_photo<br>Object | Cover photo |
url<br>URL | Required |
offset_y<br>integer | Default value: 50 |
offset_x<br>integer | Default value: 50 |
focus_y<br>float | |
focus_x<br>float | |
zoom_scale_x<br>float | |
zoom_scale_y<br>float | |
no_feed_story<br>boolean | Default value: false |
no_notification<br>boolean | Default value: false |
description<br>UTF-8 encoded string | Description |
ignore_coordinate_warnings<br>boolean | If ignore warnings generated in coordination validation (bool) |
location<br>Object | This defines the location for this page. This is required if location_page_id is not specified, or if the Page referenced by the location_page_id doesn't have a valid value for the field. The dictionary must include the keys either city_id or all of city, state, and country (but state is optional if the address is not in the U.S.). |
city<br>string | |
state<br>string | |
country<br>string | |
name<br>UTF-8 encoded string | Page name<br>Required |
phone<br>UTF-8 encoded string | Phone |
picture<br>URL | Profile picture |
website<br>URL | Website |
zip<br>string | Zipcode |
Return Type
This endpoint supports read-after-write and will read the node represented by id in the return type.
Struct {
id: numeric string,
}
Error Codes
| Error | Description |
|---|---|
| 100 | Invalid parameter |
| 200 | Permissions error |
| 152 | Invalid page type |
| 194 | Missing at least one required parameter |
| 283 | That action requires the extended permission pages_read_engagement and/or pages_read_user_content and/or pages_manage_ads and/or pages_manage_metadata |
Updating
You can't perform this operation on this endpoint.
Deleting
You can't perform this operation on this endpoint.
``
``