Apr 19

Instagram

Introduction

OAuth 2.0 is an authorization framework, which is updated after the original OAuth protocol created in 2006. OAuth 2.0 is a standard protocol, which provides delegated secured access for web, mobile, and desktop applications. To know more about the working of WaveMaker OAuth Prefabs click here.

Instagram OAuth in WaveMaker

In order to use the Instagram OAuth prefab, please follow the below steps:

Disclaimer: The screenshots from the Instagram website were current at the time of writing this document, the actual screens might differ.

  1. Drag and drop the Instagram OAuth Prefab onto the canvas of the desired page in the application.
  2. Drag and drop a Label onto the canvas. Click on bind icon against the label caption property to the callbackurl property of the Instagram OAuth Prefab.
  3. Save and Run the project. Make a note of the Callback URL displayed on the Label.
  4. Login to the Instagram.
  5. To open the Instagram API platform click here.
  6. Click Register Your Application tab to create an app.
  7. Click Manage Clients to acquire the Client ID and Client Secret for the created App Client. Paste the callback URL from step 3 in the redirect URI section of the App in Instagram.
  8. From WaveMaker, select Prefab Properties. Enter the necessary server properties such as Clientid, Client secret obtained from the previous step.
  9. Run the project and you will be prompted to log in using Instagram.
  10. Utilize the scope property of the Prefab, to achieve the advanced permissions. For more information on the scope property, click here.

Note: When an app is created with Instagram developer suite, its status will be in Sandbox mode. Sandbox mode is a fully functional environment, that allows testing the API before submitting the app for review. Each created app will have to be reviewed by the Instagram team before making it live. For more details, click here.

After the OAuth authorization is completed, you can make API calls to the Instagram. This facilitates to fetch the information of the users and media from the Instagram. For more details on the API Endpoints, please click here.

 
We use cookies to provide you with a better experience. By using our website you agree to the use of cookies as described in our Privacy Policy.