Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Instagram - Authorization URL ?

Discussion in 'iOS and tvOS' started by sama-van, Dec 20, 2017.

  1. sama-van

    sama-van

    Joined:
    Jun 2, 2009
    Posts:
    1,723
    Hello,

    Trying the Instagram API but already having a problem with the Authorization URL which is actually not a wwwForm.

    https://www.instagram.com/developer/authentication/

    Use to deal with wwwForm for other platforms and always works a charm.
    Also it seems that works the same with Instagram once you receives the CODE via URL.

    For now the big question is how to use the openURL and to get back something once the user logged?
    Actually what I get so far from the url build is something like this :

    Screen Shot 2017-12-20 at 17.48.10.png

    Below quote from the documentation.
    Screen Shot 2017-12-20 at 18.00.00.png

    I can handle the wwwForm after, but really would need advise to understand the login process via URL.

    I understand many plugins are available on the UnityStore and pretty easy for use but I would like to learn.

    Found an Unity-Android tutorial :
    http://oferei.com/2013/06/serverless-instagram-authentication/
    .... But I guess the iOS side is different...

    At least let be the first to make an input for the "Unity-Instragram iOS Authorization" help!


    Thank you! :)
     
  2. ramkesh

    ramkesh

    Joined:
    May 15, 2019
    Posts:
    10
  3. biography

    biography

    Joined:
    Oct 9, 2023
    Posts:
    2
    It's great that you're eager to learn how to work with the Instagram API in Unity. To handle the login process via URL, you can follow these steps:
    1. Authorization URL: The Instagram Authorization URL is not a www Form. You can initiate the authorization process by directing users to this URL in a web browser within your Unity app.
    2. CODE via URL: Once the user has granted authorization, Instagram will redirect back to a specified URL, typically a callback URL in your app. Your app should be able to capture the CODE from the URL to proceed with the authentication process.
    3. Unity-Android Tutorial: The Unity-Android tutorial you found could be a valuable resource for understanding the core concepts of handling Instagram authentication. While the iOS side might have some differences, the fundamental principles should be quite similar.
    4. **Plugins vs. Learning: While many plugins are available on the Unity Store for simplifying the integration process, your desire to learn the intricacies of the Instagram API is commendable. Understanding the inner workings will give you more control and flexibility in your app's behavior.
    For specific guidance on the "Unity-Instagram iOS Authorization," you might want to reach out to Unity's developer community or explore relevant forums for insights and experiences from other Unity developers who have tackled this challenge.
    Remember, learning new things takes time, and you're on the right path. Keep exploring and experimenting, and you'll gain a deeper understanding of how to integrate Instagram functionality into your Unity app.
    Best of luck with your project!