Login with Instagram

Create a Client and corresponding site by following steps corresponding to your router before following this tutorial.

Assign a domain name to the spotipo server

Spotipo must be hosted on a server accessible via domain name.

Guest must be redirected to landing page using domain name (FQDN) not via IP address.

Pre-Authorize Instagram IPs

Guest must be able to access instagram without logging in for instagram-login to work.

Please add following domains to the Pre-Authorized list in Unifi controller

photos-f.ak.instagram.com
scontent-b.cdninstagram.com
distilleryimage4.ak.instagram.com
scontent-a.cdninstagram.com
images.ak.instagram.com
photos-h.ak.instagram.com
scontent-a.cdninstagram.com
photos-e.ak.instagram.commit
Create an instagram client

Go to https://www.instagram.com/developer/clients/manage/ and create a new client by providing relevant details

Redirect url is most relevant here. It must be

http://<yourdomain>/in/login/check/

Note the trailing /

 Collect client credentials

Note down the client id and client secret

You need to provide these two while configuring Instagram Login in Spotipo.

Enable Instagram Login in Spotipo

Go to Settings-> Authentication Methods and enable Instagram Login. Make sure to configure Instagram client_id and client_secret correctly.


How did we do?