This Node.js application fetches basic user information from the Facebook API using a provided access token. It implements rate limiting to adhere to Facebook's API rate limits and handles errors gracefully.
-
Clone the repository to your local machine:
git clone [email protected]:dganai/motion-app.git
-
Navigate to the project directory:
cd motion-app
-
Install dependencies:
npm install
-
Create a
.env
file in the root directory of the project. -
Add your Facebook access token to the
.env
file:FACEBOOK_ACCESS_TOKEN=your_facebook_access_token_here
To start the application, run:
node src/index.js
The application will continuously fetch data from the Facebook API with rate limiting applied.