![Facebook Groups Scraper avatar](https://images.apifyusercontent.com/vfCR2k9L6kfVYAG0E8e6oqy3T8U20ZRL-UdFoQR7zjg/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS8yY2hOOFVRY0gxQ2Z4TFJORS9yUnYyaWlwaUN4dHo3dHlnNi1GYWNlYm9va19Hcm91cHNfU2NyYXBlci5wbmc.webp)
7 days trial then $45.00/month - No credit card required now
![Facebook Groups Scraper](https://images.apifyusercontent.com/vfCR2k9L6kfVYAG0E8e6oqy3T8U20ZRL-UdFoQR7zjg/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS8yY2hOOFVRY0gxQ2Z4TFJORS9yUnYyaWlwaUN4dHo3dHlnNi1GYWNlYm9va19Hcm91cHNfU2NyYXBlci5wbmc.webp)
Facebook Groups Scraper
7 days trial then $45.00/month - No credit card required now
Extract data from one or multiple public Facebook groups. Get group and post URLs, post text, comments, timestamp, likes and comments count, and basic commentator info. Download the data in JSON, CSV, and Excel and use it in apps, spreadsheets, and reports.
Do you want to learn more about this Actor?
Get a demoRetrieving Group Title
Closed
I would like to retrieve the group name in the result, or use "pageFunction", where we send a function as a string (e.g., at the end of this description) to add the title or other items to the return value.
"pageFunction": "async function pageFunction(context) {\n const { request, log } = context;\n const $ = context.$;\n const title = $('title').text();\n log.info(`URL: ${request.url} TITLE: ${title}`);\n return {\n title,\n context\n };\n}",
![alexey avatar](https://apify-image-uploads-prod.s3.amazonaws.com/wM4FzNZqJ8zKeBi7x/B7JmFnXiwps4jzKic-profile2021_250.png)
Hi! Page function considered as obsolete for all the actors - confusing for many users and therefore not considered as good approach. To illustrate - your page function can not be applied because actor based on data from internal FB API and there is literally no page title tag available during scraping.
For right now please modify dataset by i.e. https://apify.com/lukaskrivka/dedup-datasets or some other actor integration.
As closest alternative do you think adding entire "root" object with group details to each post will work for you?
![alexey avatar](https://apify-image-uploads-prod.s3.amazonaws.com/wM4FzNZqJ8zKeBi7x/B7JmFnXiwps4jzKic-profile2021_250.png)
Hi!
Added group title as groupTitle
output value, see sample run https://console.apify.com/view/runs/I9Gq9iYaWFiIVXhr3
I´m going to close the issue now, but if there would be anything else we could help with, please let us know.
- 457 monthly users
- 34 stars
- 99.8% runs succeeded
- 2 days response time
- Created in Nov 2022
- Modified 1 day ago