Jfa Social Media Post

plugin banner

This WordPress plugin allows you to retrieve a specific Instagram post and consume it via…

Author:Jordi Fernandes Alves (profile at wordpress.org)
WordPress version required:5.8
WordPress version tested:5.8.1
Plugin version:1.0.0
Added to WordPress repository:22-09-2021
Last updated:22-09-2021
Rating, %:0
Rated by:0
Plugin URI:https://jordifernandes.com/jfa-social-media-p...
Total downloads:100
Active installs:10+
plugin download
Click to start download

This WordPress plugin allows you to retrieve a specific Instagram post and consume it via the REST API.
Homepage: https://jordifernandes.com/jfa-social-media-post/

Config

Enter https://instant-tokens.com and create the API URL of your instagram account.

For example:
https://ig.instant-tokens.com/users/XXXXXX/instagram/XXXXXX/token?userSecret=XXXXX

Endpoint

Access the post’s JSON at the following endpoint:
GET /wp-json/api/v2/social_media_post/post/

Return

{
  "permalink": "https://www.instagram.com/p/XXXXXXXXXXXX/",
  "caption": "Caption text",
  "media_url": "https://scontent-ams4-1.cdninstagram.com/v/XXX/XXX.jpg?_nc_cat=X&ccb=1-5&_nc_sid=XX&_nc_ohc=XXX&_nc_ht=scontent-ams4-1.cdninstagram.com&edm=XXX",
  "url_token": "https://ig.instant-tokens.com/users/XXXXXX/instagram/XXXX/token.js?userSecret=XXXX",
  "username": "XXXXXXXX",
  "timestamp": "2020-12-14T20:12:36+0000"
}

Screenshots
ChangeLog