An unofficial Rust API client for Facebook post uploads.
🪛 Requirements
-
Create a Fecebook app on Developer Page
-
Your Facebook app must be in Live mode to make your posts visible for others.
-
Take ACCESS_TOKEN from Graph API Explorer. You can get 2 months token by pressing info icon.
-
Add the desired permissions to allow your app to make posts.
pages_manage_engagementpages_manage_postspages_read_engagementpages_read_user_engagementpublish_videopermission, if you need to publish a video
-
Take PAGE_ID from page that you planning to do post.
-
More useful information you can find in Offical Facebook API Documentation Current version v19.0.
🪧 Usage
Post
use *;
use ;
const ACCESS_TOKEN: &str = "YOUR_ACCESS_TOKEN";
const PAGE_ID: &str = "YOUR_PAGE_ID";
async
Photo
use *;
use ;
const ACCESS_TOKEN: &str = "YOUR_ACCESS_TOKEN";
const PAGE_ID: &str = "YOUR_PAGE_ID";
async
Video
use *;
use ;
const ACCESS_TOKEN: &str = "YOUR_ACCESS_TOKEN";
const PAGE_ID: &str = "YOUR_PAGE_ID";
async
✅ Features
- Post
- With Message
- With Link
- Photo
Non-Resumable Upload (Video limitation is 1GB 20min)
- Video
- Local Video
- Hosted Video
- With Title
- With Description
- With Thumbnail