sparacino / module-instagram
为 Magento2 提供的 Instagram Basic Display API 模块。
1.0
2020-05-24 16:45 UTC
This package is auto-updated.
Last update: 2024-09-05 20:15:41 UTC
README
``sparacino/module-instagram``
主要功能
为 Magento2 提供的 Instagram Basic Display API 模块。
需要通过连接到网站 https://developers.facebook.com 生成 "Instagram 长期访问令牌"。
安装
类型 1: Zip 文件
- 解压 zip 文件,并将内容复制到
app/code/Sparacino/Instagram
- 通过运行
php bin/magento module:enable Sparacino_Instagram
启用模块 - 通过运行
php bin/magento setup:upgrade
应用数据库更新 - 通过运行
php bin/magento setup:di:compile
编译代码 - 重建静态内容
php bin/magento setup:static-content:deploy
- 通过运行
php bin/magento cache:flush
清除缓存
类型 2: Composer
- 通过运行
composer require sparacino/module-instagram
安装模块 composer - 通过运行
php bin/magento module:enable Sparacino_Instagram
启用模块 - 通过运行
php bin/magento setup:upgrade
应用数据库更新 - 通过运行
php bin/magento setup:di:compile
编译代码 - 重建静态内容
php bin/magento setup:static-content:deploy
- 通过运行
php bin/magento cache:flush
清除缓存
配置
- ENABLE (YES/NO)
- APP_ACCESS_TOKEN
规格
- 块
- Instagram > instagram.phtml
- 小部件
- Instagram > widget/instagram.phtml
用法
您可以在 CMS 页面中插入一个块,如下所示
{{block class="Sparacino\Instagram\Block\Instagram" block_id="instagram.block" template="Sparacino_Instagram::instagram.phtml"}}
或者您可以使用小部件