AutoReel Contact
Docs · Connecting Facebook with a Meta app
← Docs

Connecting Facebook with a Meta app

About 10 minutes, done once per machine. You need a Facebook account that is an admin of the Page you want to post to.

Updated 13 Oct 2026 Tiếng Việt

What is actually happening here

Posts go straight from your machine to Facebook, through your own Meta app. The App Secret stays on your machine and is not sent anywhere else.

The address autoreelvn.com/facebook/callback/ is only a static page Facebook sends the browser back to. It does not receive, store or forward your login code — you copy the address from it yourself, paste it into the app, and the app exchanges the code locally.

If you have no domain of your own, or Meta blocks this flow, there is a shorter route that needs no domain — see [Connecting with a token] at the bottom of this page.

Step 1 — Create a Meta app

  1. Open the app dashboard

    Go to developers.facebook.com/apps and sign in with your Facebook account.
  2. Create the app

    Press Create app, choose the type Other (some interfaces call it Business), give it any name — AutoReel của <your name> will do — and press Create app.
  3. Note the App ID and App Secret

    Go to App Settings → Basic. App ID is a number. App Secret is a long string of letters and digits, and you have to press Show to see it.
The App ID and App Secret are yours. Do not share them — whoever holds the App Secret controls the app.

Step 2 — Add Facebook Login

Meta has two interface layouts; look at the left sidebar to see which one you have.

Sidebar says What to do
Use casesPress Add use case and choose the one containing Facebook Login
ProductsPress + Add Product, find Facebook Login, press Set up, choose the Web platform

Step 3 — Enable three permissions

In Use cases (or in Facebook Login on the older layout): open the Page-management use case — Manage everything on your Page → Customize → Permissions and features. Press Add for all three below, until each reads Ready for testing.

Permission What it is for
pages_show_listReading the list of Pages you manage
pages_read_engagementReading a Page's details
pages_manage_postsPosting video to a Page
Meta does not report a missing permission. It silently drops it from the consent screen and warns only the developer, in a yellow strip that users are told to ignore. The connection still reports success, and the failure turns up later when you try to post. If the app says *"Facebook did not grant: pages_manage_posts…"*, this step is incomplete.

Step 4 — Register the redirect address

Two places, and both have to be saved.

  1. Facebook Login → Settings

    Set Client OAuth Login to Yes and Web OAuth Login to Yes, then paste exactly this string into Valid OAuth Redirect URIs. Press Save Changes at the bottom right.
    https://autoreelvn.com/facebook/callback/
  2. App Settings → Basic

    Set App Domains to autoreelvn.com — the bare domain, with no https://, no slash and no path. Set Privacy Policy URL to https://autoreelvn.com/privacy/ (required before the app can go Live). Press Save Changes.
The Basic page does not save itself. Press Save, then press F5 and check — a value that has gone means it was never saved, usually because App Domains is a chip field: after typing you must press Enter to turn the text into a chip before Save will take it. And the address in Valid OAuth Redirect URIs must match character for character, including the trailing slash. Meta compares strings.
After Save and F5, App Domains still reads autoreelvn.com. If it is gone, it was not saved — do it again, and press Enter to make the chip first.

Step 5 — Connect it to the app

  1. Paste the App ID and App Secret

    Open the app, go to Cấu hình (Settings), find the Khoá khác (other keys) block, paste FACEBOOK APP ID and FACEBOOK APP SECRET, then press lưu (save).
  2. Press Connect Facebook

    Go to the Facebook screen and press Connect Facebook. Your browser opens Facebook's login page.
  3. Sign in and grant

    Sign in, choose the Page you want to post to, and agree to the permissions.
  4. Copy the address you came back to

    The browser stops at autoreelvn.com/facebook/callback/. Press Copy, or copy the whole address out of the address bar.
  5. Paste it back into the app

    Back in the app, open "Nếu đăng nhập không tự quay về" ("if the login did not come back by itself"), paste into "Địa chỉ, hoặc chỉ mã", and press Hoàn tất kết nối.
  6. Tick the Pages

    The list of Pages appears. Tick the ones you want to post to — with nothing ticked, a job has no destination.
Paste within 10 minutes of pressing Connect. Past that, press Connect Facebook again for a fresh link; the old one has expired.
The Page list appears on the Facebook screen and Kiểm tra (check) reports the connection is alive. That button asks Facebook directly rather than reading back what was stored.

Making the posts public

A Meta app starts in Development mode: posts do go up, but only accounts with a role on the app can see them. To make them public, fill in the Privacy Policy URL from step 4, then flip the App Mode switch at the top of the dashboard to Live.

Once Live, http://localhost is no longer accepted by Meta. If you set FB_REDIRECT_URI in .env, leave it as it is.
Limit The number
Reels per Page per day30 in 24 hours — past that Facebook refuses, and it is not the app's error
User token lifetimeAbout 60 days — when it lapses, press Connect again; nothing is lost

What next

Selling Posting to Facebook →