dachcom-digital / social-data-linkedin-connector
Pimcore 社交数据 LinkedIn 连接器
v3.0.0
2023-11-07 11:17 UTC
Requires
Requires (Dev)
- codeception/codeception: ^5.0
- codeception/module-symfony: ^3.1
- codeception/module-webdriver: ^4.0
- phpstan/phpstan: ^1.0
- phpstan/phpstan-symfony: ^1.0
- symplify/easy-coding-standard: ^9.0
README
此连接器允许您从 LinkedIn 获取社交帖子。
发布计划
安装
"require" : { "dachcom-digital/social-data" : "~3.0.0", "dachcom-digital/social-data-linkedin-connector" : "~3.0.0" }
将包添加到 bundles.php
return [ SocialData\Connector\LinkedIn\SocialDataLinkedInConnectorBundle::class => ['all' => true], ];
安装资源
bin/console assets:install public --relative --symlink
启用连接器
# config/packages/social_data.yaml social_data: social_post_data_class: SocialPost available_connectors: - connector_name: linkedIn
将 Cookie SameSite 设置为 Lax
否则,OAuth 连接将无法工作。
如果您有任何关于在
strict
模式下允许处理 OAuth 连接的提示,请告诉我们。
framework: session: cookie_samesite: 'lax'
LinkedIn 后台
有关设置 LinkedIn 应用的一些提示
- 通过 https://www.linkedin.com/developers/apps 创建应用
- 将
https://YOURDOMAIN/admin/social-data/connector/linkedin/check
添加到您的应用授权重定向 URL
- 申请验证(祝您好运!)
连接器配置
现在返回后台(系统
=> 社交数据
=> 连接器配置
)并检查 linkedIn 选项卡。
- 点击
安装
- 点击
启用
- 在点击
连接
按钮之前,您需要填写连接器配置。完成后,点击“保存”。 - 点击
连接
连接
这将引导您完成 LinkedIn 令牌生成过程。点击“连接”按钮后,将打开一个弹出窗口,引导您完成 LinkedIn 认证过程。如果一切顺利,弹出窗口关闭后连接设置完成。否则,您将收到错误消息。您可能需要重复连接步骤。
内容配置
扩展连接器配置
通常您不需要修改连接器(connector_config
)配置,因此大多数情况下您可以跳过此步骤。但是,如果您需要更改连接器的某些核心设置,当然可以更改它们。
# config/packages/social_data.yaml social_data: available_connectors: - connector_name: linkedIn connector_config: api_connect_permission: ['r_liteprofile', 'r_emailaddress', 'r_organization_social'] # default value
版权和许可证
版权:DACHCOM.DIGITAL
有关许可详情,请访问LICENSE.md
升级信息
在更新之前,请查看我们的升级说明!