A PHP script that allows for you to go live on Instagram with any streaming program that supports RTMP!
Built with mgp25's amazing Instagram Private API Wrapper for PHP.
Please read this entire document as it has very important information about the script. If you create an issue that can be solved by reading this document, it will be ignored.
It is suggested you watch this video for a step-by-step process on how to install this script.
- Install PHP, of course...
- Install Composer
- Goto the most release release
- Download the
update.php
file and place it in its own folder - Run the script with
php update.php
and let it install the script - Edit the
USERNAME
andPASSWORD
inside of theconfig.php
file to your Instagram username/password. - Run the
goLive.php
script. (php goLive.php
)
If you'd like a video version of this tutorial, see this video.
- Robust Installer/Updater
- To install read the Live Setup section
- To check for/apply an update just do
php update.php
- If you want to try beta feature just do:
php update.php --beta
- If you want to try beta feature just do:
- Supports Accounts with 2FA
- View Live Chat/Likes (Windows/Mac Only)
- Execute Commands to Comment, Wave, Pin Comments, Show Questions, and more...
- Launch & Start OBS Automatically (Windows Only)
- Infinite Stream: Stream forever with no user input! (Windows/Mac Only)
- Accomplished by doing:
php goLive.php -i -d
- Windows Users with OBS can do
php goLive.php -i -d --obs
for absolutely no input from the user required
- Accomplished by doing:
- Archived Stream Statistics
- Accomplished by doing:
php checkVod.php
24 hours within archiving a stream
- Accomplished by doing:
To view what commands you can run while streaming: Click Here
To view what flags you can run the goLive.php
script with: Click Here
This could be due to the following reasons:
- An invalid stream key. The stream key changes for every stream, make sure you update it.
- Your system does not support un-secure rmtp. You can fix this by running the script with
--use-rmtps
(php goLive.php --use-rmtps
).
Make sure you actually running the stop
command when you're streaming and not close it.
This could be due to the following reasons:
- You didn't stream anything from OBS/your encoder. In this case, you should delete the archive.
- You streamed a disallowed aspect ratio. Make sure you're using a vertical 16:9 aspect ratio (9:16) like 720x1280. In this case, you should delete the archive.
- Your stream is still processing. This is normal for longer streams.
This is due to CURL not having a valid CA. You can find a solution here: https://stackoverflow.com/a/34883260.
In this case, your IP is blocked by Instagram. There is nothing I can do in this situation, if you're using a VPN/Proxy (which are not supported), don't.
If your question is not listed here, join our discord so I can help support you faster. https://discord.gg/EpkKFt3
If you would like to donate to me because you find what I do useful and would like to support me, you can do so through this methods:
Patreon: https://www.patreon.com/JRoy
PayPal.me: https://www.paypal.me/JoshuaRoy1
Bitcoin: 32J2AqJBDY1VLq6wfZcLrTYS8fCcHHVDKD