Giter VIP home page Giter VIP logo

pimcore-social-data-instagram-connector's Introduction

Pimcore Social Data - Instagram Connector

Software License Latest Release Tests PhpStan

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

image

Release Plan

Release Supported Pimcore Versions Supported Symfony Versions Release Date Maintained Branch
3.x 11.0 6.2 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.0.0",
    "dachcom-digital/social-data-instagram-connector" : "~3.0.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'

Instagram Backoffice

Some hints to set up your instagram app

Private

  • Create Non-Business Facebook App
  • Add Instagram Basic Display Product
    • Add https://YOURDOMAIN/admin/social-data/connector/instagram/check in Valid OAuth Redirect URIs
    • Add https://YOURDOMAIN/admin/social-data/connector/instagram/deauthorize in Deauthorize (dummy)
    • Add https://YOURDOMAIN/admin/social-data/connector/instagram/data-deletion in Data Deletion Requests (dummy)
  • Add at least one instagram test account

Business API

Even if you're allowed to choose between a private and business connection, the business API is currently not supported and will be available soon.

  • Create Business Facebook App
  • Add Instagram Graph API

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_private: ['user_profile', 'user_media'] # default value
                api_connect_permission_business: ['pages_show_list', 'instagram_basic'] # default value

Copyright and license

Copyright: DACHCOM.DIGITAL
For licensing details please visit LICENSE.md

Upgrade Info

Before updating, please check our upgrade notes!

pimcore-social-data-instagram-connector's People

Contributors

dpfahlbusch avatar ktallafus avatar solverat avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

ktallafus

pimcore-social-data-instagram-connector's Issues

Improve/Finalise Builder

Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? no

Currently, the Instagram builder only supports the simple display API (private API). To also support the business API (Instagram graph) we need to split the builder into two services.

Implement Business Builder

Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? no

Add business build support. Todo:

  • Connect to the instragram graph api (['pages_show_list', 'instagram_basic'])
  • Finish BusinessBuilder (basically same as fb builder?)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.