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

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

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

dachcom-digital/social-data-facebook-connector

最新稳定版本:v3.2.1

Composer 安装命令:

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

包简介

Pimcore Social Data Facebook 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 Facebook.

image

Release Plan

Release Supported Pimcore Versions Supported Symfony Versions Release Date Maintained Branch
3.x 11.0 6.4 07.11.2023 Feature Branch master
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-facebook-connector" : "~3.2.0"
}

Add Bundle to bundles.php:

return [
    SocialData\Connector\Facebook\SocialDataFacebookConnectorBundle::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: facebook

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'

Facebook Backoffice

First, you need to create a facebook app. Add https://YOURDOMAIN/admin/social-data/connector/facebook/check to the Valid OAuth Redirect URIs in facebook backoffice.

Connector Configuration

image

Now head back to the backend (System => Social Data => Connector Configuration) and checkout the facebook 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 facebook token generation. After hitting the "Connect" button, a popup will open to guide you through facebook 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
Page Id Defines which page entries should be imported
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: facebook
            connector_config:
                api_connect_permission: ['pages_show_list'] # 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

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固