Every new Instagram reel is automatically re-published as a YouTube Short
π Connectingβ¦
βοΈ Setup (one time)
π How to get the Google Client ID & Secret (~15 min, one time)
1. Go to console.cloud.google.com β sign in with the Google account that owns your YouTube channel. 2. Top bar β project dropdown β New Project β name it "PunjabiLibas" β Create. 3. Left menu β APIs & Services β Library β search YouTube Data API v3 β Enable. 4.APIs & Services β OAuth consent screen β User type External β fill app name + your email β Save. Under Test users add your own Google email β Save. 5.APIs & Services β Credentials β Create Credentials β OAuth client ID β type Web application. 6. Under Authorised redirect URIs click Add URI and paste exactly: https://punjabilibas.com/reels-api.php?oauth=callback 7. Create β copy the Client ID and Client Secret into the fields above β Save Settings β click Connect YouTube β choose your channel β Allow.
Note: while the consent screen is in "Testing", the connection expires every 7 days. To make it permanent, go back to OAuth consent screen and click Publish app (no Google review needed for uploading to your own channel).
β° Automatic Publishing
Add this as a cron job in cPanel (Cron Jobs β Add New Cron Job), set to run every 6 hours β command: β
It checks for new reels and uploads any that aren't on YouTube yet (max 3 per run). You can also just click the button below whenever you like.