1 Videos chuniye
Ek saath jitni chahe Shorts select ya drag-drop kariye (9:16, 3 min se chhoti).
ya click karke select kariye
2 Title / Description paste kariye
Saari videos ka text ek saath paste kariye ya .txt file load kariye. App har video se khud match kar dega.
3 Schedule
Kahan post karna hai chuniye. YouTube khud tay time par public karega; Instagram/Facebook ko aapka Cloudflare Worker time par post karega โ upload ke baad browser band kar sakte hain.
Abhi koi video nahi hai. Upar Step 1 se videos chuniye.
Worker har 5 minute me check karke time aane par post karta hai (5โ10 minute ka antar ho sakta hai). YouTube wali videos YouTube Studio me "Scheduled" dikhengi.
Google OAuth Client ID
Yeh ID sirf aapke browser me save hoti hai. Kaise banaye โ Setup Guide dekhiye.
Is page ka origin (Google Console me "Authorized JavaScript origins" me yahi daaliye):
Instagram + Facebook โ Cloudflare Worker
Sirf Instagram/Facebook ke liye zaroori. Setup Guide ka Part 2 dekhiye.
Facebook Page + Instagram connect
Graph API Explorer se token bana kar yahan paste kariye (Guide โ Part 2, Step C).
Default hashtags (optional)
Jo hashtags har video me chahiye, jaise #hindi #facts. Description ke end me jud jayenge (agar pehle se na hon).
Setup Guide (Python ki zaroorat nahi)
Part 1 โ YouTube (~20 min) pehle kariye. Part 2 โ Instagram + Facebook baad me, jab chahein.
PART 1 โ YouTube
Step A โ Cloudflare par app daaliye
- dash.cloudflare.com par login โ Workers & Pages โ Create โ Pages tab โ Upload assets (drag & drop).
- Project ka naam dijiye, jaise
shorts-scheduler. - Ek folder banaiye jisme sirf yeh
index.htmlho, aur woh folder drop kar dijiye โ Deploy. - Aapko URL milega, jaise
https://shorts-scheduler.pages.dev. Ise copy kar lijiye.
Step B โ Google Cloud project
- console.cloud.google.com โ upar project dropdown โ New Project โ naam:
Shorts Scheduler. - APIs & Services โ Library โ "YouTube Data API v3" search โ Enable.
Step C โ OAuth consent screen
- APIs & Services โ OAuth consent screen (ya Google Auth Platform) โ Get started.
- App name:
Shorts Scheduler, support email: aapki Gmail. Audience: External. - Audience โ Test users โ Add users โ apni wahi Gmail daaliye jisme YouTube channel hai.
- Data Access โ Add scopes โ
.../auth/youtube.uploadaur.../auth/youtube.readonlytick kariye โ Save.
Step D โ Client ID banaiye
- Clients (ya Credentials โ Create Credentials โ OAuth client ID) โ Type: Web application.
- Authorized JavaScript origins me apna Cloudflare URL daaliye:
https://shorts-scheduler.pages.dev(end me / nahi). - Redirect URI ki zaroorat nahi. Create dabaiye โ Client ID copy kariye.
- Is app ke Settings tab me Client ID paste โ Save. (Naya origin chalu hone me 5โ10 minute lag sakte hain.)
Step E โ Connect & upload
- YouTube Connect dabaiye โ apni Gmail chuniye.
- "Google hasn't verified this app" aaye to Advanced โ Go to Shorts Scheduler (unsafe) โ Continue. (Yeh aapka khud ka app hai, isliye safe hai.)
- Videos chuniye โ text paste โ Auto Match โ Time lagaiye โ check kariye โ Upload.
โ ๏ธ Zaroori: Google audit
- Naye (unverified) Google project se upload hui videos Private par lock rehti hain โ schedule time par apne aap public nahi hongi. Tab tak YouTube Studio me jaakar khud Public/Schedule karna padega.
- Lock hatane ke liye Google ka "YouTube API Services โ Audit and Quota Extension Form" bhariye. Usme app ka URL, Privacy Policy aur Terms ka link maanga jata hai (apni WordPress site par page bana sakte hain). Approval me kuch hafte lag sakte hain.
- Quota: roz lagbhag 100 uploads tak (Google ki default limit). YouTube channel ki apni daily upload limit bhi alag se hoti hai.
PART 2 โ Instagram + Facebook (baad me)
Instagram API khud schedule nahi karta, isliye ek chhota Cloudflare Worker videos rakhta hai aur time par post karta hai. Iske liye worker.js file chahiye (app ke saath mili hai).
Step A โ Instagram ko Business account banaiye
- Instagram app โ Settings โ Account type and tools โ Switch to professional account โ Business.
- Is Instagram account ko apne Facebook Page se jodiye (Facebook Page settings โ Linked accounts โ Instagram, ya Accounts Center se).
Step B โ Cloudflare Worker
- Cloudflare dashboard โ R2 โ enable kariye (10 GB tak free; card add karna pad sakta hai) โ Create bucket โ naam
shorts-videos. - Storage & Databases โ KV (Workers KV) โ Create โ naam
shorts-queue. - Workers & Pages โ Create โ Worker โ "Hello World" โ naam
shorts-apiโ Deploy. - Edit code โ jo code hai sab mita kar worker.js ka poora code paste โ Deploy.
- Worker โ Settings โ Bindings โ Add:
โข R2 bucket โ Variable nameMEDIAโ bucketshorts-videos
โข KV namespace โ Variable nameDBโshorts-queue - Settings โ Variables and Secrets โ Add (type: Secret):
โขAPP_PASSWORD= koi bhi lamba password (yaad rakhiye)
โขMETA_APP_IDaurMETA_APP_SECRET= Step C se - Settings โ Triggers โ Cron Triggers โ Add โ "every 5 minutes" (ya cron:
*/5 * * * *). - Worker ka URL (jaise
https://shorts-api.aapkanaam.workers.dev) browser me kholiye โ "chal raha hai โ" dikhna chahiye.
Step C โ Meta (Facebook) app aur token
- developers.facebook.com/apps โ Create App. Use case me Page manage karna aur Instagram content publishing wale options chuniye (naam badalte rehte hain; "Other โ Business" ho to woh bhi chalega). App Development mode me hi rehne dijiye โ apne account ke liye review ki zaroorat nahi.
- App settings โ Basic โ App ID aur App Secret copy โ Worker secrets me daaliye (Step B-6).
- Tools โ Graph API Explorer โ apna app chuniye โ Get User Access Token โ yeh permissions tick kariye:
pages_show_listpages_read_engagementpages_manage_postsbusiness_managementinstagram_basicinstagram_content_publish - Generate โ popup me apna Page aur Instagram account select kariye โ token copy.
- Is app ke Settings me Worker URL + App Password โ Save & Check. Phir token paste โ Connect. Page ka naam aur @instagram dikh jaye to setup poora. โ
- Worker token ko lambe samay wala bana leta hai. Kabhi "token expire" error aaye to sirf Step C-3 se C-5 dobara kariye.
Step D โ Use kaise karein
- Schedule card me Instagram Reels / Facebook Reels tick kariye โ baaki sab pehle jaisa.
- Video Worker par chali jaati hai; post hone ke baad apne aap delete ho jaati hai. Status Insta/FB Queue tab me dekhiye.
- Har video 100 MB se chhoti honi chahiye (Cloudflare free limit). Shorts aam taur par isse kaafi chhoti hoti hain.
- Instagram caption = Title + Description + hashtags (max 30 hashtags; #shorts Instagram par nahi jaata).
Text paste ka format
Video: how-to-kill-a-mat Title: Mat ko kaise hataye? ๐ฎ Description: Is video me jaaniye ek aasaan trick. Doosri line bhi chalegi. #shorts #hacks #hindi --- Video: atm-cash-kaise-nikalti-hai Title: ATM se cash kaise nikalta hai? Description: ... Tags: atm, bank, cash
Video:line ho to match pakka hota hai. Na ho to app Title ke shabdon se file ka naam milata hai.---se har video ka block alag hota hai.#wale shabd hashtags + tags dono ban jaate hain.Tags:line comma se.- Label bilkul na ho to: pehli line = Title, baaki = Description.