*** Sorry Not working for the moment ***NGX-Ramblers has built-in support for rendering social media feeds for your group automatically, one of which is instagram. When configured correctly, it can be rendered alongside a corresponding facebook feed as shown in the example below and shows the 14 most recent media posts:

This article shows you how to:
You will need:




Enter the name of the Facebook app you just created.
/handle_auth. It doesn't really matter what this is as long as when you navigate to this url the page won't redirect to a "page not found" screen and clear the url you just tried to navigate to. NGX-Ramblers websites don't do this, but just show an alert message a page cannnot not be found. This is what you need.https://www.ngx-ramblers.org.uk/handle_auth

{app-id} with your Instagram app’s ID (from the App Dashboard > Products > Instagram > Basic Display > Instagram App ID field) and {redirect-uri} with the website URL https://www.ngx-ramblers.org.uk/handle_auth that you provided in Step 2. The URL must be exactly the same.https://api.instagram.com/oauth/authorize
?client_id={app-id}
&redirect_uri=https://www.ngx-ramblers.org.uk/handle_auth
&scope=user_profile,user_media
&response_type=code
https://api.instagram.com/oauth/authorize
?client_id=684477648739411
&redirect_uri=https://www.ngx-ramblers.org.uk/handle_auth
&scope=user_profile,user_media
&response_type=code

Authenticate your Instagram test user by signing into the Authorization Window, then click Authorize to grant your app access to your profile data. Upon success, the page will redirect you to the redirect URI you included in the previous step and append an Authorization Code. For example:
https://www.ngx-ramblers.org.uk/handle-auth?code=AQCPojlEZVyWVZ8aCpSkbcaCqOyuusWBFC3umVO47KkpKNwTUSni1_jaX_S_BniA9DDH95_MsmF4bygDrO1vjKr6eVwCZ2DLrX2lcBG0mRvL5oGwZs9tmLO-fqaHEi-CLAtJme5APcIyOyuBZk6hLdnyS8hBBWcy1RaV7zudwpj-FUsofvAOkJ7vDozABSPIAFMpGtXtHb3E51i_w-HiM8mYrVaTGAh0M51ESZ8DLYnGJQ#_
Note that #_ has been appended to the end of the redirect URI, but it is not part of the code itself. Copy the code (without the #_ portion) so you can use it in the next step. Authorization codes are short-lived and are only valid for 1 hour.
POST request which you will need to send as a cURL command to the API after you've copied it to the clipboard:curl -X POST \
https://api.instagram.com/oauth/access_token \
-F client_id={app-id} \
-F client_secret={app-secret} \
-F grant_type=authorization_code \
-F redirect_uri=https://www.ngx-ramblers.org.uk/handle_auth \
-F code={code}
{app-id}, {app-secret}, and {code} with your Instagram app ID, Instagram app secret, your redirect URI, and the code you collected on the previous step. For example:curl -X POST \
https://api.instagram.com/oauth/access_token \
-F client_id=684477648739411 \
-F client_secret=eb8c7... \
-F grant_type=authorization_code \
-F redirect_uri=https://www.ngx-ramblers.org.uk/handle_auth \
-F code=AQCPojlEZVyWVZ8aCpSkbcaCqOyuusWBFC3umVO47KkpKNwTUSni1_jaX_S_BniA9DDH95_MsmF4bygDrO1vjKr6eVwCZ2DLrX2lcBG0mRvL5oGwZs9tmLO-fqaHEi-CLAtJme5APcIyOyuBZk6hLdnyS8hBBWcy1RaV7zudwpj-FUsofvAOkJ7vDozABSPIAFMpGtXtHb3E51i_w-HiM8mYrVaTGAh0M51ESZ8DLYnGJQ
{
"access_token": "IGQVJ...",
"user_id": 17841405793187218
}
access_token (also referred to in the next section as short-lived-access-token) to your notes as you will need to copy / paste it in the next steps.GET /access_token endpoint to exchange a short-lived Instagram User Access Token for a long-lived token. Once you have a long-lived token, this is what will be saved into your website configuration permanently.{app-secret} and {short-lived-access-token} with your Instagram app secret and the code you collected on the previous step.curl -i -X GET https://graph.instagram.com/access_token
?grant_type=ig_exchange_token
&client_secret={app-secret}
&access_token={short-lived-access-token}
{
"access_token":"IGQWRNNF9IWEVDNkFWaF9JSTRRcEFGYTcxZAGdiMjhRSlNkZAGt5LXBoVmYtOWhSbzM4Y",
"token_type": "bearer",
"expires_in": 5183944
}

Now enter / check the following details:
access_token that you collected on Step 6According to the Instagram API documentation, the long-lived access_token is only valid for 60 days. However your NGX-Ramblers website will automatically refresh the token when the site is used so there is never any need to do this manually — if you've managed to get the feed working in the prior step, that's all you'll ever need to do.
If you've followed the above process and you are still not seeing the instagram feed above, drop us an email and we'll take a look at your site logs to see what's wrong!