ryangittings/craft-instagram-feed
Composer 安装命令:
composer require ryangittings/craft-instagram-feed
包简介
A simple plugin for pulling Instagram posts in your templates.
README 文档
README
A plugin for Craft CMS that allows you to retrieve your Instagram feed.
Installation
Upload the instagramfeed/ directory to your plugins/ directory.
Go to plugins and install/enable Instagram Feed.
Next, go to settings and enter your Instagram user id and access token.
Usage
instagramfeed has two available methods for you to call.
getFeed(int $numberOfPostsToRetrieve)
returns a multidimensional array of your instagram posts. Each post has four elements you can access.
- link (the link to your instagram post)
- url (the url of the image)
- likes (the number of likes the post recieved)
- comments (the number of comments the post recieved)
{% for image in craft.instagramfeed.getFeed(8) %}
{{ image.link }}
{{ image.url }}
{{ image.likes }}
{{ image.comments }}
{% endfor %}
isConnected()
Returns true if Instagram Feed succesfully connected to your instagram account
统计信息
- 总下载量: 28
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-12-20