Facebook Profile Scraper (Private & Public)
by igolaizola
Extract Facebook private or public profile posts, including text, images, videos, comments, reactions, and shares. Supports scraping tagged people and...
Opens on Apify.com
About Facebook Profile Scraper (Private & Public)
Extract Facebook private or public profile posts, including text, images, videos, comments, reactions, and shares. Supports scraping tagged people and translations. Use authentication cookies for access. Ideal for market research, sentiment analysis, and social media monitoring.
What does this actor do?
Facebook Profile Scraper (Private & Public) is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.
Key Features
- Cloud-based execution - no local setup required
- Scalable infrastructure for large-scale operations
- API access for integration with your applications
- Built-in proxy rotation and anti-blocking measures
- Scheduled runs and webhooks for automation
How to Use
- Click "Try This Actor" to open it on Apify
- Create a free Apify account if you don't have one
- Configure the input parameters as needed
- Run the actor and download your results
Documentation
Facebook Profile Scraper (Private & Public) ## 🤖 What does this Actor do? The Facebook Profile Scraper enables you to extract posts from Facebook profiles. This includes: - 💬 Post text and metadata - 📷 Images and videos - 👤 Author details - 💬 Comments (optional) ## 💡 Why scrape Facebook Profiles? Facebook profiles contain a wealth of information useful for: - 📊 Market research and audience analysis - 🌍 Social media trend analysis - 💬 Sentiment analysis of public discussions - 📑 Archiving and research purposes ## ⚡ How to scrape Facebook Profiles ### 🔍 Prerequisites You will need to provide your own Facebook session cookies. Follow the steps below to export your cookies. ### 🗂 Exporting Cookies (Using Cookie-Editor Extension) 1. Open Google Chrome. 2. Install the Cookie-Editor Chrome extension. 3. Go to Facebook and log into your account. 4. Change the language to English (if not already). 5. Click the Cookie-Editor extension in your browser. 6. Click Export to download your cookies as a JSON file. 7. Copy the JSON content and provide it in the cookies field when running the scraper. ### 💧 Running the Scraper 1. Click Try for free. 2. Enter the URLs of the Facebook profiles you want to scrape. 3. Paste your exported cookies in the cookies field. 4. Set the number of posts to scrape (maxItems). 5. (Optional) Enable scraping of comments, replies, shares, reactions, and tagged people. 6. Click Run. ## 📂 Input Parameters | Parameter | Type | Description | | -------------------- | ------- | ------------------------------------------------------------------- | | urls | array | List of Facebook profile URLs to scrape (required). | | cookies | array | JSON exported from Cookie-Editor containing authentication cookies. | | maxItems | integer | Maximum number of posts to scrape (default: 10). | | endDate | string | Scrape posts until this date (format: YYYY-MM-DD). | | comments | boolean | Scrape comments (default: false). | | maxComments | integer | Maximum number of comments to scrape per post (default: 10). | | proxyConfiguration | object | Proxy settings (Apify Residential Proxy recommended). | > ⚠️ IMPORTANT: Enabling comments, replies, shares, reactions, and peopleWith may significantly increase the runtime. ### Example Input: json { "urls": ["https://www.facebook.com/zuck"], "cookies": [ { "name": "c_user", "value": "123456", "domain": ".facebook.com" } ], "maxItems": 20, "comments": true, "reactions": true, "proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] } } ## 📊 Output Example json { "id": "1234567890", "attached_id": "", "pinned": false, "created_at": "2024-02-01T12:34:56Z", "permalink": "https://www.facebook.com/zuck/posts/1234567890", "author": { "id": "123456", "name": "Mark Zuckerberg", "url": "https://www.facebook.com/zuck", "image": "https://example.com/avatar.jpg" }, "message": "Hello, world!", "translation": "", "comment_count": 5, "reaction_count": 20, "share_count": 3, "comments": [ { "id": "987654321", "author": { "id": "654321", "name": "John Doe" }, "message": "Great post!", "created_at": "2024-02-01T13:00:00Z" } ], "images": [{ "id": "img1", "url": "https://example.com/image.jpg" }], "videos": [{ "id": "vid1", "url": "https://example.com/video.mp4" }], "links": ["https://example.com"], "reactions": [ { "author": { "id": "999999", "name": "Jane Doe" }, "reaction_id": "like" } ], "profile_url": "https://www.facebook.com/zuck", "profile_name": "Mark Zuckerberg" } ## 🚀 Proxy Recommendations Using Apify Residential Proxy is recommended to avoid detection and IP blocking when scraping Facebook. Set up proxy settings under proxyConfiguration. ## ⚖️ Legal Considerations Scraping Facebook is subject to Facebook's Terms of Service. You should ensure that you have the legal right to scrape any data and comply with all relevant laws and regulations. ## 🛠️ Troubleshooting - Double-check cookie and proxy settings. - Refresh cookies frequently to avoid being blocked. - Ensure you have access to the Facebook profiles you are scraping. - Monitor logs for error messages. - Open an issue if you encounter any problems. Happy Scraping! 🚀
Categories
Common Use Cases
Market Research
Gather competitive intelligence and market data
Lead Generation
Extract contact information for sales outreach
Price Monitoring
Track competitor pricing and product changes
Content Aggregation
Collect and organize content from multiple sources
Ready to Get Started?
Try Facebook Profile Scraper (Private & Public) now on Apify. Free tier available with no credit card required.
Start Free TrialActor Information
- Developer
- igolaizola
- Pricing
- Paid
- Total Runs
- 1,117
- Active Users
- 417
Related Actors
🏯 Tweet Scraper V2 - X / Twitter Scraper
by apidojo
Instagram Scraper
by apify
TikTok Scraper
by clockworks
Instagram Profile Scraper
by apify
Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.
Learn more about ApifyNeed Professional Help?
Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.
Trusted by millions | Money-back guarantee | 24/7 Support