madebyprisma/instagram 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

madebyprisma/instagram

Composer 安装命令:

composer require madebyprisma/instagram

包简介

A simple toolkit that allows for one-click CMS integration with Instagram

README 文档

README

composer require madebyprisma/instagram

A simple toolkit that allows for one-click CMS auth for an Instagram account.

Getting Started

  1. Setup a Facebook app with Instagram Basic Display See Facebook Docs
  • Setup Notes:
    • The CMS integration only works with https, however manually generated test tokens work locally.
    • Valid OAuth Redirect URIs should direct to https://{your-domain}/prisma.instagram/authorize
    • Deauthorize Callback URL should direct to https://{your-domain}/prisma.instagram/deauthorize
    • Data Deletion Request Callback URL should direct to https://{your-domain}/prisma.instagram/delete_data
  1. Assign your app keys:
# mysite.yml

Prisma\Instagram:
  app_id: {Instagram app ID}
  app_secret: {Instagram app secret}
  1. You or the client can then link an Instagram account by clicking on Link Account inside of Admin > Settings > Instagram

Reference

class Prisma\Instagram

  • static function getMedia(int $limit = 5) ArrayList<Post>

DataObjet Post

  • InstagramID: Int - ID of the Post
  • Type: "IMAGE" "VIDEO" "CAROUSEL_ALBUM" - Media type, if this post is a child, then it will only be "IMAGE" or "VIDEO"
  • ISOTimestamp: String - ISO8601 timestamp of the post
  • URL: String - The URL to the post media
  • ThumbnailURL: String - The URL to the post thumbnail, only available for "VIDEO"
  • Caption: String? - Caption on the post, may be empty
  • Children: ArrayList<Post>? - The posts children, only valid if Type is "CAROUSEL_ALBUM"
  • PermaLink: String - The permalink to the post

统计信息

  • 总下载量: 88
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: AGPL-3.0-only
  • 更新时间: 2021-01-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固