All Projects → igorsuhinin → modx-instagram-latest-posts

igorsuhinin / modx-instagram-latest-posts

Licence: GPL-3.0 License
This snippet allows us to get the latest posts of any Instagram user. Access tokens are NOT required.

Programming Languages

PHP
23972 projects - #3 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to modx-instagram-latest-posts

Alpacka
Base service class for MODX packages including common utilities, available via composer as `modmore/alpacka`
Stars: ✭ 14 (-30%)
Mutual labels:  modx-revolution, modx
Shareinstagram
Share image and video to instagram feed and stories
Stars: ✭ 34 (+70%)
Mutual labels:  instagram, feed
PhotoFeed
🛵 Instagram in Swift 4
Stars: ✭ 43 (+115%)
Mutual labels:  instagram, feed
babel
Babel is an Extra for MODx Revolution that creates linked documents across different contexts. The easy way for your multilingual site!
Stars: ✭ 61 (+205%)
Mutual labels:  modx-revolution, modx
CronManager
Manage cronjobs within the MODX manager
Stars: ✭ 17 (-15%)
Mutual labels:  modx-revolution, modx
modx2-api
MODX Revolution RESTful API
Stars: ✭ 16 (-20%)
Mutual labels:  modx-revolution, modx
CustomRequest
Use pretty URLs everywhere in MODX Revolution
Stars: ✭ 17 (-15%)
Mutual labels:  modx-revolution, modx
craft-instagram-feed
Craft CMS plugin to receive Instragram feed data as variable in templates
Stars: ✭ 25 (+25%)
Mutual labels:  instagram, feed
picpuller-for-craft3
Pic Puller for Craft 3 lets authorized users pull in their Instagram media into Craft.
Stars: ✭ 12 (-40%)
Mutual labels:  instagram
Endless
🛣 A lightweight endless pageControl based on CAShapeLayers and UICollectionView
Stars: ✭ 19 (-5%)
Mutual labels:  instagram
UPES-SPE-Fest
An Instagram like Social Networking Android App for UPES SPE Fest using Firebase as backend.
Stars: ✭ 39 (+95%)
Mutual labels:  instagram
sharestapp
Sharestapp lets you to directly share an image/videos/reels post from Instagram to other apps and also allows to save.
Stars: ✭ 13 (-35%)
Mutual labels:  instagram
serverless-instagram-crawler
serverless, instagram hashtag crawler with lambda, dynamoDB
Stars: ✭ 33 (+65%)
Mutual labels:  instagram
InstagramSaver
Application for saving photos/videos from Instagram
Stars: ✭ 31 (+55%)
Mutual labels:  instagram
social-media-profiler
Find information from Twitter, Instagram, LinkedIn and Google Search about a person.
Stars: ✭ 34 (+70%)
Mutual labels:  instagram
kirby3-instagram
Kirby 3 Plugin to call Instagram (or any other) API Endpoints
Stars: ✭ 20 (+0%)
Mutual labels:  instagram
hexo-instagram-wall
Displays up to 18 most recent images from your Instagram account
Stars: ✭ 12 (-40%)
Mutual labels:  instagram
vscode-odoo-snippets
Develop Odoo modules faster and with no Typing Errors.
Stars: ✭ 20 (+0%)
Mutual labels:  snippets
SweetLike
A beautiful like button written in Swift.
Stars: ✭ 13 (-35%)
Mutual labels:  instagram
code-cheats
Quick reference code snippets curated from various sources
Stars: ✭ 17 (-15%)
Mutual labels:  snippets

MODX Revolution: latest posts from Instagram

- SORRY, IT'S OUT OF MAINTENANCE

This snippet allows us to get the latest posts from any non-private Instagram account.

N.B.! Please take into account, 12 latest posts can be returned only as it's limited by Instagram.

Property Description Default
&accountName Instagram account name
&limit Set the limit on the maximum number of items that will be displayed 6
&showVideo Do we need to show the video as well? Available options: 1, 0 0
&innerTpl Inner chunk name Instagram-Inner
&outerTpl Outer chunk name Instagram-Outer
&errorTpl Error chunk name Instagram-Error
&cacheEnabled Do we need to cache the data from Instagram? Available options: 1, 0 1
&cacheExpTime Set the cache expiry time in seconds 3600

Installation

Please download the package "InstagramLatestPosts" via MODX Package Manager or from MODX Extras and install it

OR

Follow the steps below

  1. Create the snippet called InstagramLatestPosts and copy the snippet code there
  2. Create three chunks with the following names
  • Instagram-Outer
  • Instagram-Inner
  • Instagram-Error
  1. [optional] You can modify the chunk names above; if you do that please specify these names in the snippet parameters
  2. Copy the corresponding HTML code to the chunks above
  3. [optional] You can modify the chunk code as well; if you do that please use the following placeholders:
  • Instagram-Outer
Placeholder Description
[[+accountUrl]] The link to the Instagram profile
[[+items]] The items returned from Instagram
  • Instagram-Inner
Placeholder Description
[[+link]] The direct link to the corresponding post
[[+type]] Type of the item; it can have two values only: image, video
[[+url]] URL of the image or video depending on what you want to show
[[+user.profile_picture]] URL of the user avatar
[[+user.username]] Instagram account name
[[+user.full_name]] Full name of account
[[+caption]] Post caption
[[+likes]] Post likes count
[[+comments]] Post comments count
[[+poster]] A poster image for video
  • Instagram-Error
Placeholder Description
[[+error]] The error explaining the issue
  1. Place the snippet call in MODX where it's needed
[[!InstagramLatestPosts? &accountName=`nike`]]
  1. Modify the properties if you like as shown below

Usage

[[!InstagramLatestPosts?
	&accountName=`nike`
	&limit=`10`
	&showVideo=`1`
	&innerTpl=`MyInnerTemplate`
	&outerTpl=`MyOuterTemplate`
	&cacheEnabled=`1`
	&cacheExpTime=`1800`
]]

Contributing

If you have any idea or bug fix, feel free to fork the code and submit your pull request back to me. I will be happy to include your awesome changes in the code!

Donations

The donations are not required - just a few "thank you" words from you would be really great to get as well :) Though if you like this MODX Extra and you would like me to release the updates more often, feel free to send any amount through PayPal.


Thanks to all supporters :)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].