My main job at Facebook is working on finding and getting rid of hate speech on the platform, but Radlibrary is a side project that I maintain. Radlibrary is an R package for querying the Facebook Ad Library API, and transforming the results into tidy dataframes suitable for statistical analysis.
You can find the project on Github, and it’s easy to install using
The full documentation is here, which includes a guide to obtaining the necessary access credentials.
If you’re using the package, I’d love to hear from you! You can tweet at me, or feel free to open an issue on Github.