SkillAgentSearch skills...

LiveInstagramLocalhosts

InstagramLive-PHP Discord 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. Note This has been only tested on Windows, I have no clue if this works on UNIX-Based Systems. Feel free to try though! Additionally, I've only tested this in OBS. Therefore, I highly recommend using it. Setup If you are running this after the first setup, work from step six on... Install PHP, of course... Install Composer Clone the Repository Run composer install in the cloned folder Edit the Username and Password inside of config.php to your Instagram details Run the goLive.php script. (php goLive.php) Copy you Stream-URL and Stream-Key and paste them into your streaming software. See OBS-Setup Video Tutorial If you'd like a video version of this tutorial, see this video. OBS-Setup Go to the "Stream" section of your OBS Settings Set "Stream Type" to "Custom Streaming Server" Set the "URL" field to the stream url you got from the script Set the "Stream key" field to the stream key you got from the script Make Sure "Use Authentication" is unchecked and press "OK" Start Streaming in OBS To stop streaming, run the "stop" command in your terminal and then press "Stop Streaming" in OBS Note: To emulate the exact content being sent to Instagram, set your OBS canvas size to 720x1280. This can be done by going to Settings->Video and editing Base Canvas Resolution to "720x1280".

Install / Use

/learn @penteseter123/LiveInstagramLocalhosts
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

InstaLV ❤

A PHP script + webapp that allows you to go live on Instagram with any streaming program that supports RTMP!

Built with mgp25's amazing Instagram Private API Wrapper for PHP.

InstaLV is a fork of JRoy/InstagramLive-PHP.

Features

  • A webapp to easily control livestream
  • See livestream viewers
  • See likes & comments during livestream
  • Call custom callbacks when a user like or comment

Setup

  • Install PHP
  • Install Composer
  • Download the latest release or clone this repo
  • Run composer install in the cloned folder
  • Edit the username and password inside config.php with your Instagram username and password
  • Run the live.php script :
    php live.php
    
  • On another terminal, run the server :
    php -S localhost:8000 server.php
    
    You can also simply execute the run_server.sh or run_server.bat (Windows) which will run the above command.
  • Open the URL http://localhost:8000 in a browser.
  • In the InstaLV webpage, click on the button Stream Key/URL. Copy the Stream-URL and Stream-Key and paste them into your streaming software. See OBS-Setup

OBS-Setup

  • Go to the "Stream" section of your OBS Settings
  • Set "Stream Type" to "Custom Streaming Server"
  • Set the "URL" field to the stream url you got from the script
  • Set the "Stream key" field to the stream key you got from the script
  • Make Sure "Use Authentication" is unchecked and press "OK"
  • Start Streaming in OBS
  • To stop streaming, run the "stop" command in your terminal and then press "Stop Streaming" in OBS
  • Note: To emulate the exact content being sent to Instagram, set your OBS canvas size to 720x1280. This can be done by going to Settings->Video and editing Base Canvas Resolution to "720x1280".

FAQ

OBS gives a "Failed to connect" error

This is mostly due to an invalid stream key: The stream key changes every time you start a new stream so it must be replaced in OBS every time.

I've stopped streaming but Instagram still shows me as live

This is due to you not running the "stop" command inside the script. You cannot just close the command window to make Instagram stop streaming, you must run the stop command in the script. If you do close the command window however, start it again and just run the stop command, this should stop Instagram from listing to live content.

I get an error inside of Instagram when archiving my story

This is usually due to archiving a stream that had no content (video). Just delete the archive and be go on with your day.

Donate

If you have found this software useful, Please Donate

View on GitHub
GitHub Stars18
CategoryCustomer
Updated3mo ago
Forks4

Languages

PHP

Security Score

87/100

Audited on Dec 10, 2025

No findings