Hi, I want to open an Instagram profile with a button, but the following code does not work, you can help.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class contact : MonoBehaviour {
public void insta () {
string instagram = "url:instagram://user?username=the.msy";
Application.OpenURL(instagram);
}
}
Hi @unity_350semih , you haven’t mentioned if you’re trying to open instagram on a browser, or through the app in a mobile device, however the way you’ve implemented your current code, i’m going to assume you’re trying to open the instagram app. Here, this should help:-
If you’re trying to open it in a browser then just use: