A sample dashboard to jumpstart your Meta Insights API projects!
Report Bug
·
Request Feature
Table of Contents
This project showcases sample API usage for multiple Meta Insights API products, in a friendly easy-to-use dashboard.
-
For your reference the documentation of Meta Insights APIs used in this project are:
-
In order to run the Insights Dashboard app, you will need to update the configuration file by adding the:
-
If running locally:
-
If running in dev container:
- Docker or another environment that supports dev containers e.g. GitHub Codespaces.
-
You will need to have a Facebook Page / Ad account and an App created in Meta Developers. If you don’t have an app, follow the guide here to create your app first.
-
Run
npm install
oryarn install
Installs project dependencies. Open the terminal and run
npm install
oryarn install
. -
Set up
.env.local
fileCopy the file
.sample.env.local
to.env.local
cp .sample.env.local .env.local
Edit the
.env.local
file to add all the values for your project including your Meta information related to Pages, Instagram and Ad Account to fetch the Insights data.
-
Run
npm run dev
oryarn dev
Runs the app in the development mode. Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes. You may also see any errors in the console.
-
Run
npm run build
oryarn build
Builds the app for production to thebuild
folder. It correctly bundles React in production mode and optimizes the build for the best performance. -
Run
npm run cypress
oryarn cypress
Launches the test runner with Cypress in the interactive watch mode.
Contributions are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the Meta Platform Policy. See LICENSE
file for more information.