You can actually grow your business faster letting your users log in to your application by their profile information. This is a win-win both for the customers and for you. That’s because your users can access or login to your application or services with just a single tap and you get all his/her details like email and name.
What can be a better way to collect leads than this? With the help of Instagram Access Token, your customers can request on behalf of you to give you his/her details. If you are using WooCommerce, you can use this method to collect user details.
But how to collect the Instagram Access Token? In this article, we will be showing you easy ways to get the Instagram access token. So, sit tight and go ahead!
Method 1: Getting Instagram Access Token for Non-developers
Follow this method if you don’t have any programming knowledge:
Navigate to developer.facebook.com. Next, click on My Apps.

Now, select “Create App”.

Select for Everything else:

Fill out the App Display Name, App Contact Email and hit the “Create App ID” button.

Next up, click the “Add Platform” button:

Select your platform. In this case, we are choosing the “website”.

Provide your website URL and save changes:

Now, go to the Product option:

Now, select “Set Up” from Instagram Basic Display:

Now, scroll all the way down below to “Create New App”.

You will see a popup window. All you need to do is to provide a Display Name and hit the “Create App” button.

Now, provide your website URL to the following fields and make sure to save changes:

Go to the Roles-> Roles option and select the “Add Instagram Testers” option:

Provide your Instagram username URL:

Now login to your Instagram profile then go to Edit Profile > Apps and Websites> Tester Invites. You will be able to see the invitation. Make sure to accept the invitation:

Now, go to the developer.facebook.com > Products > Instagram Basic Display > Basic Display > User Token Generator > Hit the “Generate Token” button:

Continue with your account:

Hit continue again:

Voila! Here is your Instagram access token:

If you are a developer and want to create an Instagram access token then proceed to method 2.
Method 2: Create Instagram Access Token (For Developers)
Follow these steps:
Step 1: Get Authorization
Instagram will redirect your users to your app and include an authorization code right after a user logs in and chooses which data to allow your app to access. With this authorization code, you will then be able to exchange for a short-lived access token.
To start off the process, you will need to find the Authorization Window and show it to the user:
https://api.instagram.com/oauth/authorize
?client_id={instagram-app-id}
&redirect_uri={redirect-uri}
&scope={scope}
&response_type=code
&state={state} //Optional
Query String Parameters
All parameters except state are required.
| Parameter | Sample Value | Description |
|---|---|---|
client_idRequired Numeric string | 990602627938098 | Your Instagram App ID displayed in App Dashboard > Products > Instagram > Basic Display. |
redirect_uriRequired String | https://socialsizzle.herokuapp.com/auth/ | A URI where Instagram will redirect users after they allow or deny permission requests. You have to make sure that this URI exactly matches one of the base URIs in your list of valid oAuth URIs. Please note that Instagram recommends you verify by checking the list as the App Dashboard may have added a trailing slash to your URIs. |
response_typeRequired String | code | Set this value to code. |
scopeRequired Comma- or space-separated list | user_profile,user_media | A comma-separated list, or URL-encoded space-separated list, of permissions to request from the app user. user_profile is required. |
stateString | 1 | An optional value indicates a server-specific state. For instance, you can use this to protect against CSRF issues. When redirecting the user back to you, Instagram will include this parameter and value. |
Sample Authorization Window URL
https://api.instagram.com/oauth/authorize ?client_id=990602627938098 &redirect_uri=https://socialsizzle.herokuapp.com/auth/ &scope=user_profile,user_media &response_type=code
Successful Authorization
In the event of a successful authorization, Instagram will redirect your user to your [redirect_uri]. After that Instagram will pass you an Authorization code through the query string parameter [code]. All you need to do is to capture the code so that you can enable your app to exchange it for a temporary Instagram User Access Token.
Please note that the Authorization Codes are valid for 1 hour and you can only use it once.
Here is a Sample Successful Authentication Redirect:
https://socialsizzle.herokuapp.com/auth/?code=AQBx-hBsH3...#_
Please note that though the #_ will be appended to the end of the redirect URI, it does not belong to the code itself therefore you can remove it.
Canceled Authorization
Not always the user will complete the authorization flow. In case the user does not complete the authorization follow, Instagram will redirect your user to the redirect_uri and append the following error parameters.
In this situation, you can display an appropriate message to your users.
| Parameter | Value |
|---|---|
error | access_denied |
error_reason | user_denied |
error_description | The+user+denied+your+request |
Sample Canceled Authorization Redirect
https://socialsizzle.herokuapp.com/auth/?error=access_denied &error_reason=user_denied &error_description=The+user+denied+your+request
Step 2: Exchange the Code For a Token
When you receive a code, you will need to exchange it for a temporary access token. You can do it just by sending POST request to the following endpoint:
POST https://api.instagram.com/oauth/access_token
Body Parameters
Now you will have to include the following parameters in your POST request body.
| Parameter | Sample Value | Description |
|---|---|---|
client_idRequired Numeric string | 990602627938098 | Your Instagram App ID displayed in App Dashboard > Products > Instagram > Basic Display. |
client_secretRequired String | a1b2C3D4 | Your Instagram App Secret displayed in App Dashboard > Products > Instagram > Basic Display. |
codeRequired String | AQBx-hBsH3... | The authorization code Instagram passes you in the code parameter when redirecting the user to your redirect_uri. |
grant_typeRequired String | authorization_code | Set this value to authorization_code. |
redirect_uriRequired String | https://socialsizzle. heroku.com/auth/ | The redirect URI you passed us when you directed the user to our Authorization Window. This must be the same URI or Instagram will reject the request. |
Sample Request
curl -X POST \ https://api.instagram.com/oauth/access_token \ -F client_id=990602627938098 \ -F client_secret=eb8c7... \ -F grant_type=authorization_code \ -F redirect_uri=https://socialsizzle.herokuapp.com/auth/ \ -F code=AQBx-hBsH3...
Sample Success Response
There you go! If the response is successful, the API will return a JSON payload containing the app user’s short-lived access token and User ID.
{
"access_token": "IGQVJ...",
"user_id": 17841405793187218
}
Now that you got the Access Token, you can easily capture the access_token value. By using this short-lived Instagram user access token you can allow your app to access Instagram Basic Display API endpoints.
Sample Rejected Response
The API will return an error if the request is malformed.
{
"error_type": "OAuthException",
"code": 400,
"error_message": "Matching code was not found or was already used"
}
Conclusion
We hope this article will help you to get the Instagram Access Token in the easiest way. If you think there is an even easier way, don’t hesitate to share with us so that we can all get benefitted. Thanks in advance!
Related Topic: Learn How to Add Instagram Feed on Your WordPress Website.
Courtesy: developer.facebook.com,


![Black Friday and Cyber Monday are around the corner, and people are waiting for these festivals to grab the best product deals. That is why giving an attractive look to your website during this festive season is very necessary. But, creating a whole new landing page might be difficult in a short period of time. Don't worry. By using Happy Elementor Addons Black Friday and Cyber Monday Landing Page templates, you can easily develop a whole new landing page in a few minutes. In this today's blog, we are going to show how to boost your website design using HappyAddons templates during this festival season. Before that, we'll talk a bit about these two festivals and why they are important to online business communities. What are Black Friday and Cyber Monday? Black Friday is the immediate following of the famous Thanksgiving day. This is when people start shopping to celebrate the Christmas festival. Since the late 1980s, retail sales on this day have constantly been suppressing the past volumes. See the graph below. Source: Salecycle.com The first Monday following Thanksgiving day each year is called Cyber Monday. It was first introduced in 2005 by the USA National Retail Federation to encourage people to buy online. Though this festival originated in the USA, it is celebrated globally today. See the stats below. Source: Salecycle.com It indicates customers' buying behavior around this day is growing up over time. Many customers today keep a budget to buy products on these two days. So, why won’t you prepare a Cyber Monday landing page if you have an online store? Importance of Designing Landing Pages for Black Friday and Cyber Monday Festival Having a well-design website is one of the major checklists if you are running an online business. Most importantly, you have to make sure that your website remains up-to-date to boost your sales. That is why you need to redesign your website or make a new landing page during the Black Friday and Cyber Monday festivals. Because most online product & service-based businesses promote special deals during these two festivals. Here are some remarkable ways dedicated landing pages during these festivals can positively impact the performance of your online business. Boosts your product salesIncreases conversion rateOpportunity to collect potential email leadsGrabs users' attention toward your siteReduces bounce rateIncreases website visitors. Elementor Black Friday New Seasonal Kit is Already Here! Source: Elementor To make this Black Friday more enjoyable, Elementor has launched a New Seasonal Kit that includes landing pages, sections, pop-ups, and vector assets. All these design elements are made by the Elementor team so that one can easily use them on their website to ensure more sales and conversions. New Elementor Black Friday Seasonal Kit offers: 3 Landing pages6 Sections 6 Popups A collection of stickers & animations You can only get these ready-made Black Friday landing pages and sections if you have Installed Elementor Pro on your site. However, if you are looking for templates that are outside of the box, you can go with Happy Addons, the fastest Elementor Addons on the market. It's very easy to use, flexible and has tons of advanced features and widgets that can ease your website design journey. Also, you'll get several festival landing page templates & blocks. Moreover, you can use free Black Friday and Cyber Monday design blocks and templates to decorate your site. Most importantly, these templates and blocks are easy to customize and can be used for multiple purposes. Now let's see how you can use the Happy Addons templates to design your website according to the Black Friday theme. Pre-Requisites to Use HappyAddons Templates to Design Black Friday and Cyber Monday Landing Pages You must have the following plugins installed on your site to get access to the HappyAddons Template library. Make sure you’ve installed and activated the Happy Addons Free & Premium version of your website. Elementor (Free)Happy Addons (Free)Happy Addons Pro If you are new to Elementor, check this Step By Step Guide For Beginners. If you want to explore the readymade templates of HappyAddons before installing these plugins, you may visit by clicking on the button below. Check out Happy Addons Templates How to Design Black Friday Landing Page on Your Website Once you have the plugins (mentioned above) installed, your website is ready to follow the tutorial guide explained in this section. Get ready now! Step 1: Open a New Page with Elementor Create a new page or open the existing page with Elementor. Next, you have to select the Elementor Canvas option.Unless you select Elementor Canvas, you may watch the header, footer, and unnecessary other texts on the page. These might be irritating to you.Once you open the page with Elementor Canvas, your page will be completely clean. Watch the video below on how to do it. Step 02: Go to HappyAddons Library Click on the HappyAddons Library Icon. It will open up a modal popup. Here you'll find numerous stunning premade Blocks and Pages created by the Happy Addons team. Kindly explore them to create a list of your favorite items. Step 03: Import a HappyAddons Black Friday Template Go to the Page tab on the modal popup.Select Black Friday from the left-side filter option.You will several good-looking templates on your screen.Take your cursor on the one you like and hit on the INSERT button. Wait for a while to finish the installation process. You will get the template on your screen with editable sections and options. Step 04: Set the Black Friday Campaign Deadline A deadline creates a sense of urgency in customers' minds. So, better if you add a deadline section on the page to show your Black Friday deals. The good thing is that if you select the template as we did, you will automatically get a deadline or countdown option. You have to customize it as you want. Step 05: Show Image Carousel Slider on Your Black Friday Landing Page Using the Image Carousel, you can slide show demonstrating discounts on your product categories. Drag and drop the Image Carousel widget on any landing page section. Next, from the Elementor panel, you can add photos and text to the widget. Do it accordingly. Thus, you can add more sections and options on the landing page. Hope you can do it yourself. Step 06: Make the Black Friday Landing Page Mobile Responsive Making a web page mobile responsive with Elementor is super easy. You'll get the mobile responsive option on the Elementor footer section. Clicking on it will open up the option to view your landing page on different device screens. We have explained the process in the video below. Note: Don't delete any widget or section while customizing your landing page for any particular device. Because if you delete a widget or section on any device screen, it will also be applied on other devices. However, you may change their position or alignment or hide them. It won't make any impact on other devices. Step 07: Final Preview of Our Landing Page Here is the final interface of our Elementor Black Friday landing page that we've designed using the Happy Addons' ready-made Template. Get Happy Addons to Add a Black Friday Theme Landing Page on Your Website How to Design Cyber Monday Landing Page on Your Website You will require the same prerequisites (Elementor and HappyAddons Plugins) to design the Cyber Monday landing page on your website. Hope you have them ready on your website. Now, let's get into the tutorial part. Step 01: Import a Cyber Monday Readymade Landing Page Template Go to the HappyAddons Template library.Choose the Cyber Monday template you like.Click on the INSERT button. Wait for a while to finish the installation process. You'll get a page design like the following image below. Step 02: Edit Different Sections of the Page In the first tutorial, you saw the deadline/countdown option was already embedded in the template. But this template doesn't have it. So, you can bring it to your page? Very simple. Create a new section by clicking on the plus icon.Type Countdown on the Elementor search bar.Drag and drop the widget on the section. Customize the Countdown section from the Content and Style tabs of the Elementor panel. Using the Heading widget, we have added the FLASH DEALS text next to the countdown to make it more meaningful. Thus, you can use other exciting widgets on the template to make your landing page super gorgeous. Step 03: Promote Products on the Landing Page Promotional landing pages usually include a section to showcase some hot-selling products to generate instant sales. Using the Image and Button widgets, we have created this section under the FLASH DEALS.You may customize it more as you wish. Step 04: Make it Mobile Responsive We already showed you the process in the first tutorial on making a mobile web landing page responsive. Hope you can do it here as well, following the same guideline. Click on the Responsive Mode icon and do the rest yourself. Bonus: Black Friday and Cyber Monday Landing Page Design Key Considerations Whenever you design a landing page, you need to consider why you need to design this page and what elements they should keep on the page. Because if you are not adding all the necessary features to your page, it will not serve its purpose. This is why you need to focus on a few things before designing your Black Friday landing page. Here are some points you must consider in designing Black Friday and Cyber Monday landing pages. Add Black Friday textSet deals deadlineShow your best-discounted productsAdd coupon code Focus on responsive page designMake your page visually appealingImprove your page user experience or page structureSet a proper website navigation FAQ on Black Friday and Cyber Monday Landing Page Design Now, we'll answer some common questions on Black Friday and Cyber Monday Landing page designs commonly found online. How much does it cost to design a landing page?The cost of designing a landing page varies depending on the complexity of the design, the level of customization required, and whom to hire for the page. A simple landing page can be designed for as little as $25, while a more complex design with multiple customizations can cost upwards of $2,00.However, if you have Elementor and HappyAddons installed, you can design unlimited landing pages at a minimal cost. But like any other tool, you must have a kind of enterprise on them. As they are drag-and-drop builders and their numerous tutorials and documentation are available, they won't take you more than a month to be used to. Check out some wonderful YouTube tutorials on these two plugins. Hope you will enjoy them.How many hours does it take to design a landing page?It mainly depends on the level of design complexity and your web design skill. However, both in Elementor and HappyAddons, you will get countless readymade templates and block sections. You can design a beautiful landing page in 3-5 hours by making a proper combination of them.Can I design Black Friday and Cyber Monday Landing pages with Elementor and HappyAddons free versions?Surely, you can design Black Friday and Cyber Monday Landing pages with Elementor and HappyAddons free versions. But only with the pro versions, you can't add too many exciting features to your pages. For example, free versions will give you access to only a limited number of readymade templates.If you are just a beginner-level designer, free versions are enough. But if you are a professional designer or have a web designing agency, pro versions are a must. Are You Ready To Design Your Black Friday and Cyber Monday Landing Page? Customers look forward to this kind of occasion to buy their favorite products at a minimum price. Naturally, they are drawn to websites that look good and give a festive vibe. That is why adding a Black Friday and Cyber Monday landing page during the festival season will give you an extra edge over the competitors. The above guide shows how to design your Elementor Black Friday Landing page using the Happy Addons' Black Friday Templates and how it can help boost your holiday sales. So if you have any queries regarding this blog, you can comment on us in the below box. If you like this post, then share it on your social channel. Don't forget to subscribe to our newsletter. Also, follow our Facebook and Twitter channels for regular updates. Subscribe to our newsletter Get latest news & updates on Elementor [yikes-mailchimp form="1"] ":36560} /--](https://happyaddons.com/wp-content/uploads/2021/11/How-to-Design-Black-Friday-and-Cyber-Monday-Landing-Page-300x188.png)

2 Responses
Author really never even tried to do it himself. Last part is simply doesnt work.
Hello Arthur, we have checked and our dev team shared the method with us. Thanks for informing us we need to recheck it. Insta team always changes their API. It’s really pathetic. Do you have any suggestions? We love to know that method too.
Thanks and Regards,
Gobinda.
Coordinator | Team HappyAddons.