Download the PHP package wilr/silverstripe-facebookconnect without Composer

On this page you can find all versions of the php package wilr/silverstripe-facebookconnect. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package silverstripe-facebookconnect

Facebook Connect Integration Module

Maintainer Contact

Requirements

Overview

The module provides a basic interface for implementing the Facebook PHP SDK on your SilverStripe website. The Facebook SDK allows users to login to your website using their Facebook account details, creating a single sign-on within the existing SilverStripe member system.

What it provides

Installation

Register your website / application with Facebook.

Set your configuration through the SilverStripe Config API. For example I keep my configuration in mysite/_config/facebookconnect.yml file:

Update the database by running /dev/build to add the additional fields to the Member table and make sure you ?flush=1 when you reload your website.

You can also access the Facebook PHP SDK in your PHP code..

For more information about what you can do through the SDK see:

https://developers.facebook.com/docs/reference/php/4.0.0

Options

All the following values are set either via the Config API like follows

Config::inst()->update('FacebookControllerExtension', '$option', '$value')

Or (more recommended) through the YAML API

FacebookControllerExtension: option: value

app_id

Your app id. Found on the Facebook Developer Page.

api_secret

Facebook API secret. Again, from your Application page.

create_member

Optional, default: true

Whether or not to create a Member record in the database with the users information. If you disable this, ensure your code uses $CurrentFacebookMember rather than $Member. Other access functionality (such as admin access) will not work.

member_groups

Optional, default ''

A list of group codes to add the user. For instance if you want every member who joins through facebook to be added to a group Facebook Members set the following:

FacebookControllerExtension: member_groups:

permissions

Optional, default 'email'

A list of permission codes you want from the user. Permission codes are listed on developers.facebook.com.

Ensure you include email in your list if you require create_member.

facebook_fields

Default 'email','first_name','last_name'

A list of fields you want to retrieve from Facebook for the user. Available fields are listed on developers.facebook.com.

Ensure you include email in your list if you require create_member.

sync_member_details

Optional, default true

Flag as to whether to replace user information (such as name) in your database with the values from Facebook.

License

Released under the BSD-3-Clause License.


All versions of silverstripe-facebookconnect with dependencies

PHP Build Version
Package Version
Requires silverstripe/framework Version >=3.1
facebook/php-sdk-v4 Version @stable
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wilr/silverstripe-facebookconnect contains the following files

Loading the files please wait ....