inspiredminds/contao-facebook-login 问题修复 & 功能扩展

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

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

inspiredminds/contao-facebook-login

Composer 安装命令:

composer require inspiredminds/contao-facebook-login

包简介

Contao 4 bundle for a Facebook login.

README 文档

README

Contao Facebook Login

Contao 4 bundle for a Facebook login.

Installation

Require the bundle via composer:

composer require inspiredminds/contao-facebook-login

If you use the Contao Standard Edition, you will have to add

new FacebookLoginBundle\FacebookLoginBundle()

to your AppKernel.php. You will also need to add the bundle's routes to your app/config/routing.yml:

FacebookLoginBundle:
    resource: "@FacebookLoginBundle/Resources/config/routing.yml"

Then execute the Contao Install Tool (regardless of which edition you use).

Usage instructions

Facebook App

Before being able to use the Facebook login, you have to create a Facebook App for your website under developers.facebook.com/apps. Make sure to fill out at least the following fields:

  • Settings » Basic » Add Platform » Website: enter the basic URL of your site, e.g. http://example.org.
  • Settings » Basic » App Domains: fill in the domain of your site, e.g. example.org.

Then you need to configure the Facebook Login on the left side under PRODUCTS. If said product is not there, you need to add it manually via + Add Product first. Make sure to fill out Valid OAuth URIs with the the following URL of your site: http://example.org/fblogincallback. If you are using https, use that instead (or both). Set the rest of the settings as seen in the screenshot below:

Facebook Login settings

Use Strict Mode for Redirect URIs can be enabled (new Facebook apps will have this enabled by default). Then make your App public under App Review.

Contao configuration

After creating the Facebook App, you need to set the Facebook App ID and Facebook App Secret. You can define these either in the website root or in the system settings. Use the former if you are using a multidomain setup.

Facebook Login module

Simply create a Facebook Login module in your theme and include it anywhere. It works and behaves the same way as the regular login module of Contao and also offers the same settings, plus the ability to define the member groups newly registered users will belong to and the ability to decide what personal data should be stored from Facebook.

You can also define additional Facebook Login Permissions. These will be added to the default permissions. The module will also save a user access token in the session under the variable facebook_login_access_token for later use.

Attributions

This bundle uses code provided and originally used by Kamil Kuzminski.

inspiredminds/contao-facebook-login 适用场景与选型建议

inspiredminds/contao-facebook-login 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 873 次下载、GitHub Stars 达 7, 最近一次更新时间为 2017 年 11 月 04 日, 在 PHP 生态内属于活跃度较高的组件。

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

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

围绕 inspiredminds/contao-facebook-login 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

  • Stars: 7
  • Watchers: 1
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2017-11-04