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.
- Drag and drop the Instagram OAuth Prefab onto the canvas of the desired page in the application.
- Drag and drop a Label onto the canvas. Click on bind icon against the label caption property to the
callbackurlproperty of the Instagram OAuth Prefab.
- Save and Run the project. Make a note of the Callback URL displayed on the Label.
- Login to the Instagram.
- To open the Instagram API platform click here.
- Click Register Your Application tab to create an app.
- 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.
- From WaveMaker, select Prefab Properties. Enter the necessary server properties such as Clientid, Client secret obtained from the previous step.
- Run the project and you will be prompted to log in using Instagram.
- 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.