Facebook Totem
Educational purposes only
Facebook Totem allows you to retrieve information about ads of a Facebook page. You can retrieve the number of people targeted, how much the ad cost and a lot of other information.
Installtion
Building from Source
The compiled binary will be available at target/release/facebook_totem
Install with Cargo
Usage
)
Single Mode - Get ads from a single page
Multi Mode - Get ads from multiple pages
Search Mode - Search for pages by name
The output is saved in the output/ folder. For multi mode, each page gets its own file named with the page name and ID.
Testing
Run the comprehensive test suite:
The test suite includes:
- Unit tests for core parsing and CSV writing functions
- Integration tests for CLI commands and workflows
- Error handling tests for edge cases and invalid inputs
- Mock data tests for testing with sample Facebook responses
Run tests with output:
Run specific test modules: