https://github.com/dannweeeee/bardbook
Publish Facebook Posts Natively using Meta Graph API
https://github.com/dannweeeee/bardbook
clerk graph-api nextjs
Last synced: 23 days ago
JSON representation
Publish Facebook Posts Natively using Meta Graph API
- Host: GitHub
- URL: https://github.com/dannweeeee/bardbook
- Owner: dannweeeee
- Created: 2023-12-10T15:52:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-15T17:08:33.000Z (over 1 year ago)
- Last Synced: 2025-02-10T11:14:08.275Z (3 months ago)
- Topics: clerk, graph-api, nextjs
- Language: TypeScript
- Homepage:
- Size: 49.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bardbook
**Bardbook** built using [Clerk](https://clerk.com/), [NextJS](https://nextjs.org/) and [Meta Graph API](https://developers.facebook.com/docs/graph-api/).
## Task
Create a NextJS application, using TypeScript. The web application should be able to signup/login via Facebook OAuth2 & publish posts on Facebook.
## Tools Used
- **Clerk**: For user authentication (Connection only through Facebook)
- **Meta Graph API**: For posts
- **Shadcn**: For minimalistic components## Limitations
**Limitation:** To use Facebook User Login Authenticator, I had to create a Consumer App on the Meta Developer Platform. However, a Consumer App does not provide api methods to POST posts on Facebook. Meta Graph API calls can only be created via a Business App, and Business Apps takes 10 days to be approved (with proper app Privacy Policy and Terms & Conditions done)
**Solution:** I created a Consumer App on Meta Developer Platform to connect the Clerk Authenticator (user will have to grant permissions on Facebook to login to Bardbook). I then created a separate Business App that is connected to a [Bardbook Facebook Page](https://www.facebook.com/profile.php?id=61554628525650) to POST posts via the Meta Graph API.
## Installation
Clone the repository
```
git clone https://github.com/dannweeeee/bardbook.git
```## Deployment
First install the dependencies with the following command:
```
npm install
```Thereafter run the following command to run Bardbook locally:
```
npm run dev
```