# Facebook Page Scraper – Social Links & Contact Info (`daniyal_zia/my-actor-2`) Actor

Extract publicly available information from Facebook Page About sections, including website URLs, social media profile links, phone numbers, email addresses (if publicly available), addresses, and other contact details.

- **URL**: https://apify.com/daniyal\_zia/my-actor-2.md
- **Developed by:** [Daniyal zia](https://apify.com/daniyal_zia) (community)
- **Categories:** Automation, Social media, Lead generation
- **Stats:** 2 total users, 0 monthly users, 98.3% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $10.00 / 1,000 facebook page scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Facebook Page Scraper – All Links & Contacts

Extract publicly available links and contact information from Facebook Pages.

This Actor scans publicly available Facebook Page information and extracts websites, social media profiles, phone numbers, WhatsApp links, email addresses, and other useful contact links.

It is designed for social media research, lead generation, business research, and automation workflows.

### What This Actor Extracts

Depending on what is publicly available on the Facebook Page, the Actor can extract:

#### 🌐 Websites & Links

- Website
- Multiple website URLs
- Link-in-bio URLs
- Google Maps / Map URLs
- Other publicly available links

#### 📱 Social Media

- Instagram
- TikTok
- YouTube
- Twitter / X
- LinkedIn
- Snapchat
- Pinterest
- Telegram
- Threads
- Other social links

#### 📞 Contact Information

- Phone numbers
- Multiple phone numbers
- WhatsApp numbers
- WhatsApp links
- Email addresses
- Multiple email addresses

### Features

- 🚀 Playwright powered
- 🔎 Extracts publicly available Facebook Page information
- 🌐 Finds websites and social media links
- 📞 Extracts publicly listed contact information
- 💬 Detects WhatsApp numbers and WhatsApp links
- 🔗 Automatically handles Facebook redirect URLs
- ⚡ Fast and lightweight
- 📊 Structured JSON output
- 🔒 Does not attempt to access private or login-protected information

### Input

Provide a publicly accessible Facebook Page URL.

Example:

```json
{
  "url": "https://www.facebook.com/aiwithdaniyal"
}
```

### Output

The Actor returns structured information from the Facebook Page.

Example:

```json
{
  "facebookUrl": "https://www.facebook.com/fearlessdigital",
  "instagram": "https://www.instagram.com/daniyalziaofficial",
  "website": "https://fearlessdigital.org",
  "phone": "+923001234567",
  "whatsapp": "https://wa.me/923001234567",
  "email": "example@domain.com",
  "tiktok": "https://www.tiktok.com/@example",
  "youtube": "https://www.youtube.com/@example",
  "twitter": "https://x.com/example",
  "linkedin": "https://www.linkedin.com/company/example",
  "snapchat": "https://www.snapchat.com/add/example",
  "pinterest": "https://www.pinterest.com/example",
  "telegram": "https://t.me/example",
  "threads": "https://www.threads.net/@example",
  "linkInBio": "https://linktr.ee/example",
  "mapUrl": "https://maps.google.com/..."
}
```

Only information that is publicly available on the Facebook Page will be returned. Fields may be empty when the corresponding information is not available.

### Dataset Views

The Actor provides different dataset views to make the extracted data easier to work with.

#### Overview

Provides a complete overview including Facebook Page information, websites, contact details, social profiles, and other available links.

#### Contacts Only

Focuses on contact and business information such as:

- Phone numbers
- WhatsApp numbers and links
- Email addresses
- Websites

#### All Social Links

Provides Facebook Page information and discovered social media links.

### How It Works

1. Enter a public Facebook Page URL.
2. The Actor opens the page using Playwright.
3. It checks publicly available information.
4. It identifies websites, contact information, and social media links.
5. Facebook redirect URLs are automatically decoded when required.
6. The extracted information is returned as structured dataset data.

### Use Cases

#### Lead Generation

Find publicly listed contact information and social profiles for businesses.

#### Social Media Research

Discover the social media accounts connected to Facebook Pages.

#### Business Research

Collect publicly available websites, phone numbers, emails, and other business links.

#### Competitor Research

Find the websites and social media presence associated with competing businesses.

#### Automation

Connect the Actor to automation workflows to process Facebook Page URLs and collect structured business information.

### Data & Privacy

This Actor processes publicly available information from Facebook Pages.

It does not attempt to:

- Access private profiles or private information
- Access login-protected information
- Bypass authentication
- Extract restricted content
- Collect information that is not publicly available

Please use the Actor responsibly and comply with Facebook's terms, applicable laws, and the rights of individuals and businesses whose publicly available information you process.

### Limitations

The extracted data depends on what is publicly available on each Facebook Page.

Some fields may be unavailable if:

- The Facebook Page does not publicly list the information
- A social profile is not connected to the Page
- Contact information is not publicly displayed
- Facebook changes its page structure
- The requested information is restricted or unavailable

Therefore, not every result will contain every field.

### Example Input

```json
{
  "url": "https://www.facebook.com/aiwithdaniyal"
}
```

### Example Output

```json
{
  "facebookUrl": "https://www.facebook.com/fearlessdigital",
  "instagram": "https://www.instagram.com/daniyalziaofficial",
  "website": "https://fearlessdigital.org",
  "phone": "+923351262609",
  "whatsapp": "https://wa.me/923351262609",
  "email": "example@domain.com",
  "tiktok": "https://www.tiktok.com/@faazfearlessofficial",
  "youtube": "https://www.youtube.com/@aiwithdaniyal3",
  "linkedin": "https://www.linkedin.com/in/daniyalzia332/"
}
```

### Support

If you encounter an issue, make sure the Facebook Page URL is correct and publicly accessible.

Built and maintained by **Daniyal Zia**.

# Actor input Schema

## `url` (type: `string`):

Example: https://www.facebook.com/aiwithdaniyal

## `urls` (type: `array`):

Add extra pages here to scrape many in one run. Each page becomes its own dataset row.

## `scrapeAboutPage` (type: `boolean`):

Phone numbers, email and the website usually live on the About / Contact info tab, so keep this on for the best results. Turning it off makes runs faster but finds much less.

## `maxAboutPages` (type: `integer`):

How many About tabs to try (contact info, details, about). The Actor stops early once it has the website plus a number.

## `extractPhonesFromText` (type: `boolean`):

Many pages write their number as plain text instead of a link. Turn this off if you only want numbers that come from real tel: / wa.me links.

## `extractWebsitesFromText` (type: `boolean`):

Picks up domains typed in the bio or posts, e.g. "shop now: mystore.pk". Turn off for link-only results.

## Actor input object example

```json
{
  "url": "https://www.facebook.com/aiwithdaniyal",
  "urls": [],
  "scrapeAboutPage": true,
  "maxAboutPages": 2,
  "extractPhonesFromText": true,
  "extractWebsitesFromText": true
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "url": "https://www.facebook.com/aiwithdaniyal"
};

// Run the Actor and wait for it to finish
const run = await client.actor("daniyal_zia/my-actor-2").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "url": "https://www.facebook.com/aiwithdaniyal" }

# Run the Actor and wait for it to finish
run = client.actor("daniyal_zia/my-actor-2").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "url": "https://www.facebook.com/aiwithdaniyal"
}' |
apify call daniyal_zia/my-actor-2 --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,daniyal_zia/my-actor-2"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/9vXQji1v8143v4wBu/builds/wqzTTa8g7on0TvwwR/openapi.json
