# Scrape Facebook Page

{% embed url="<https://www.youtube.com/embed/shDlLr860OA>" %}

## Configuration&#x20;

### Page URL

Enter the URL of the Facebook page you want to scrape. Only public Facebook pages and profiles can be scraped.

This section can include variables with double curly braces. Example: `{{page_URL}}`

### Output Variable

Specify the name of the output variable that will store the results. Example: `page_Result`

### Sample Output

```json
{
  "facebookUrl": "https://www.facebook.com/XXXXXXXXXXX",
  "categories": ["Page", "Reference website"],
  "info": ["XXXXXXXXXX. 78,367 likes", "878 talking about this. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"],
  "likes": 78367,
  "messenger": null,
  "title": "XXXXXXXXXX",
  "pageId": "XXXXXXXXXXXXXXXXX",
  "pageName": "XXXXXXXXXX",
  "pageUrl": "https://www.facebook.com/XXXXXXXXXXX",
  "intro": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "websites": ["http://www.xxxxxx.com/"],
  "email": "xxxxxxxxx@xxxxxxx.com",
  "website": "xxxxxxxxx.com",
  "followers": 77959,
  "profilePictureUrl": "https://xxxxxxx/xxxxxxxxxx.jpg",
  "coverPhotoUrl": "https://xxxxxxx/xxxxxxxxxx.jpg",
  "profilePhoto": "https://www.facebook.com/photo/?fbid=xxxxxxxx&set=a.xxxxxxxxxx",
  "creation_date": "May 28, 2010",
  "ad_status": "This Page is not currently running ads.",
  "about_me": {
    "text": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.",
    "urls": []
  },
  "facebookId": "XXXXXXXXXXXXXXXXX",
  "pageAdLibrary": {
    "is_business_page_active": false,
    "id": "xxxxxxxxxxxxxxxx"
  }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://university.mindstudio.ai/docs/building-ai-agents/blocks-reference/scrape-facebook-page.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
