定制 dachcom-digital/social-data-instagram-connector 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

dachcom-digital/social-data-instagram-connector

Composer 安装命令:

composer require dachcom-digital/social-data-instagram-connector

包简介

Pimcore Social Data Instagram Connector

README 文档

README

Important

This bundle will not be compatible with Pimcore 12 or any future Pimcore versions.

For all future development, updates, and documentation, please refer to opendxp.io:

Note: We are open to partnerships for those interested in porting this bundle to future versions.

For inquiries, please contact: dcdi@dachcom.ch

Software License Software License Latest Release Tests PhpStan

This Connector allows you to fetch social posts from Instagram (Currently only via basic display api).

Important

The Instagram Basic Display API has been shut down. Personal Instagram accounts are no longer supported. Therefor this extension only works with Creator or Business Instagram accounts!

image

Release Plan

Release Supported Pimcore Versions Supported Symfony Versions Release Date Maintained Branch
4.x 11.0 6.4 29.01.2025 Feature Branch master
3.x 11.0 6.4 07.11.2023 Unsupported 3.x
2.x 10.1 - 10.6 5.4 05.01.2022 Unsupported 2.x
1.x 6.0 - 6.9 3.4, ^4.4 22.10.2020 Unsupported 1.x

Installation

"require" : {
    "dachcom-digital/social-data" : "~3.1.0",
    "dachcom-digital/social-data-instagram-connector" : "~4.0.0"
}

API via Facebook Login

If you want to use the facebook api, you also have to install the league/oauth2-facebook extension:

"require" : {
    "league/oauth2-facebook": "^2.0"
}

Add Bundle to bundles.php:

return [
    SocialData\Connector\Instagram\SocialDataInstagramConnectorBundle::class => ['all' => true],
];

Install Assets

bin/console assets:install public --relative --symlink

Enable Connector

# config/packages/social_data.yaml
social_data:
    social_post_data_class: SocialPost
    available_connectors:
        -   connector_name: instagram

Set Cookie SameSite to Lax

Otherwise, the oauth connection won't work.

If you have any hints to allow processing an oauth connection within strict mode, please tell us.

framework:
    session:
        cookie_samesite: 'lax'

Setup App

Some hints to set up your instagram app

Instagram API with Instagram Login

  • Create Business App
  • Add "Instagram" Product
    • Add https://YOURDOMAIN/admin/social-data/connector/instagram/check in Instagram => API setup with Instagram business login => 3. Set up Instagram business login => Business login settings
  • Select Instagram API with Instagram Login and store Instagram app ID and Instagram app secret in the pimcore connector section

Instagram API with Facebook Login

  • Create Business App
  • Select Instagram API with Facebook Login and store App-ID and App Secret in the pimcore connector section
  • Add "Facebook Login for Business" Product
    • Add https://YOURDOMAIN/admin/social-data/connector/instagram/check in Valid OAuth Redirect URIs in section "Settings"

Connector Configuration

image

Now head back to the backend (System => Social Data => Connector Configuration) and checkout the instagram tab.

  • Click on Install
  • Click on Enable
  • Before you hit the Connect button, you need to fill you out the Connector Configuration. After that, click "Save".
  • Click Connect

Connection

image

This will guide you through the instagram token generation. After hitting the "Connect" button, a popup will open to guide you through instagram authentication process. If everything worked out fine, the connection setup is complete after the popup closes. Otherwise, you'll receive an error message. You may then need to repeat the connection step.

Feed Configuration

Name Description
Limit Define a limit to restrict the amount of social posts to import (Default: 50)

Extended Connector Configuration

Normally you don't need to modify connector (connector_config) configuration, so most of the time you can skip this step. However, if you need to change some core setting of a connector, you're able to change them of course.

# config/packages/social_data.yaml
social_data:
    available_connectors:
        -   connector_name: instagram
            connector_config:
                api_connect_permission_instagram_login: ['instagram_business_basic'] # default value
                api_connect_permission_facebook_login: ['instagram_basic', 'pages_read_engagement', 'pages_show_list', 'business_management'] # default value

Upgrade Info

Before updating, please check our upgrade notes!

License

DACHCOM.DIGITAL AG, Löwenhofstrasse 15, 9424 Rheineck, Schweiz
dachcom.com, dcdi@dachcom.ch
Copyright © 2025 DACHCOM.DIGITAL. All rights reserved.

For licensing details please visit LICENSE.md

dachcom-digital/social-data-instagram-connector 适用场景与选型建议

dachcom-digital/social-data-instagram-connector 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 9.15k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 10 月 07 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「feed」 「social」 「instagram」 「pimcore」 「Social Wall」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 dachcom-digital/social-data-instagram-connector 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 dachcom-digital/social-data-instagram-connector 我们能提供哪些服务?
定制开发 / 二次开发

基于 dachcom-digital/social-data-instagram-connector 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 6
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2020-10-07