Facebook Posts Scraper avatar

Facebook Posts Scraper

Try for free

7 days trial then $35.00/month - No credit card required now

Go to Store
Facebook Posts Scraper

Facebook Posts Scraper

apify/facebook-posts-scraper
Try for free

7 days trial then $35.00/month - No credit card required now

Extract data from hundreds of Facebook posts from one or multiple Facebook pages and profiles. Get post URL, post text, page or profile URL, timestamp, number of likes, shares, comments, and more. 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 demo
IS

Not returning embedded links

Closed

inquisitive_soil opened this issue
5 months ago

Testing out this scraper on a public page (https://www.facebook.com/officialbenshapiro). It seems like when someone embeds a link, it does not return the link in the dataset (ideally it would get the link, title, description, etc.). Is there a way to get these? Thanks!

alexey avatar

Hi!

Thanks for pointing out, can you provide direct post URL without embedded link?

alexey avatar

Is it the case you talking about? https://www.facebook.com/officialbenshapiro/posts/pfbid02vD2WL4NdF8S9XtkqkGL6PFDp96BCfV7JLtbEwjCJ4Fe1TjWUPXS4LJ7qsz5GT5Pjl

Sample run https://console.apify.com/view/runs/LbzRbwkAP6dJ2U262

Dataset https://api.apify.com/v2/datasets/bO1CaBSZKcwPf2ry4/items?clean=true&format=json but there is "link": "https://www.dailywire.com/news/jeremys-razors-is-now-on-amazon-prime?utm_source=facebook&utm_medium=social&utm_campaign=benshapiro" as expected

alexey avatar

Actor not getting title and description for link "preview" since separate http request required to do it and, if implemented, will slow down a lot overall progress and increase usage (cost).

Is it worth for you to spend more per run with the option to get title and description per "link" when link is website?

IS

inquisitive_soil

5 months ago

Sorry, missed all these. For some reason I initially didn't see the link in the json. I would love it if there was an option to get title and description as well! Maybe not something that's always done though.

alexey avatar

Hi!

Found a way to get this details from internal cache, so just added new values to the latest release, no extra resources consumed to get them: https://console.apify.com/view/runs/iiq21192z0qwmhccY

1{
2  "link": "https://www.dailywire.com/news/hagerty-success-or-failure-of-cryptocurrency-is-at-stake-in-november?utm_source=facebook&utm_medium=social&utm_campaign=benshapiro",
3  "previewTitle": "HAGERTY: ‘Success Or Failure’ Of Cryptocurrency Is At Stake In November",
4  "previewDescription": "Senator Bill Hagerty (R-TN) explained in an interview with The Daily Wire why he supports cryptocurrency, and how the Democratic Party could threaten its success if Vice President Kamala Harris and other Democrats win in November. “If we don’t see the next generation of innovation occurring ...",
5  "previewSource": "dailywire.com",
6  "previewTarget": {
7    "__typename": "ExternalUrl",
8    "article_author": null,
9    "external_url": "https://www.dailywire.com/news/hagerty-success-or-failure-of-cryptocurrency-is-at-stake-in-november?utm_source=facebook&utm_medium=social&utm_campaign=benshapiro",
10    "id": "226547524203272:1229671261847509"
11  }
12}

I´m going to close the issue now, but if there would be anything else we could help with, please let us know.

Developer
Maintained by Apify

Actor Metrics

  • 1.2k monthly users

  • 230 stars

  • >99% runs succeeded

  • 3.3 days response time

  • Created in Nov 2022

  • Modified 6 days ago