This guide explains how to get information about Facebook Pages including names, locations, and more. Find Pages to @Mention , Page locations, and tag a Page to show branded content .
You will need:
curl -i -X GET \ "https://graph.facebook.com/pages/search?q=Facebook &fields=id,name,location,link &access_token={access-token}"
Returns a list of Pages
that meet the query's criteria. Set the q
parameter value to a keyword or search term (e.g. q=Facebook
). Use the fields
parameter to list any fields
you want included with each Page returned in the response.
{ "data": [ { "id": "309968765748101", "name": "Facebook HQ", "location": { "city": "Menlo Park", "country": "United States", "latitude": 37.483183, "longitude": -122.149999, "state": "CA", "street": "1 Hacker Way", "zip": "94025" }, "link": "https://www.facebook.com/Facebook-HQ-166793820034304/" }, { "id": "194776097220801", "name": "Facebook Seattle", "location": { "city": "Seattle", "country": "United States", "latitude": 47.628293260721, "longitude": -122.34263420105, "state": "WA", "street": "1101 Dexter Ave N", "zip": "98109" }, "link": "https://www.facebook.com/fbseattle/" }, ... ] }
Field Name | Description |
---|---|
|
The ID of the Facebook Page. |
|
Display whether the Facebook Page is eligible to post branded content . |
|
Display whether a Facebook Page that was automatically generated has been claimed
by the business it represents, |
|
The link to the Facebook Page. |
|
The physical location of the business represented by the Facebook Page, if applicable. |
|
The city where the business represented by the Facebook Page is located. |
|
The country where the business represented by the Facebook Page is located. |
|
The latitude of the business represented by the Facebook Page. |
|
The longitude of the business represented by the Facebook Page. |
|
The state where the business represented by the Facebook Page is located. |
|
The street on which the business represented by the Facebook Page is located. |
|
The postal code of the business represented by the Facebook Page. |
|
The name of the Facebook Page. |
|
The verification status of the Facebook Page
that represents a business, |
GET /search?type=place
endpoint is deprecated in v8.0+ and in all versions on Nov. 2, 2020.