Download the PHP package mvo/contao-facebook-import without Composer

On this page you can find all versions of the php package mvo/contao-facebook-import. 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 contao-facebook-import

contao-facebook-import

This bundle enables to use Facebook's events and posts as native elements in Contao Open Source CMS. The following things are available:

Version 3

This is version 3 of the bundle - to see a list of changes and information on how to migrate from older versions please refer to the changelog.

PHP 8

Unfortunately, there is no official release of facebook/graph-sdk with support for PHP 8. You can, however, require the third-party fork nickdnk/graph-sdk in your application, which added support for PHP 8 and acts as a drop-in-replacement. You might want to do this before installing this bundle, so that the installation won't fail.

Setup

Step 1: Download (& register) the Bundle

Require the bundle as a dependency and register the MvoContaoFacebookImportBundle in your AppKernel (automatically done in the Contao Managed Edition):

Update your database.

Step 2: Configure (optional)

You can edit the configuration by setting the following parameters in your config.yml - the following values are the defaults:

Its highly recommended to use a distinct cron job and use the route. If you use the internal variant make sure you have disabled the periodic command scheduler and you are still triggering the _contao/cron route with a cron job. Otherwise long latency might occur when the synchronizer is running.

Step 3: Use the Bundle

Facebook GraphAPI

Create one or more Facebook nodes in the backend. To make your application able to connect to Facebook's GraphAPI, you need to create a at least one Facebook app and access token.

The latter you can generate doing the following steps:

To test your token and see if it won't expire, you can enter it into the Access Token Debugger and look for the expiry date.

Synchronization

If you enable auto synchronization, you're good to go. To manually import posts and events, see what got imported or hide certain elements head to the respective posts / events child views of your Facebook node.

Images are being imported separately from the textual contents in the background. Their import happens in chunks and is prioritized over updating the textual content. You'll see images appearing in the elements as soon they have been scraped.

Frontend

To display the data in the frontend use the Facebook Post List and Facebook Event List content elements.


All versions of contao-facebook-import with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
ext-pdo Version *
ext-json Version *
codefog/contao-haste Version ^4.17
contao/core-bundle Version ^4.9
doctrine/dbal Version ^2.10 || ^3.0
doctrine/doctrine-bundle Version ^1.8 || ^2.0
doctrine/orm Version ^2.6
facebook/graph-sdk Version ^5.7
guzzlehttp/guzzle Version ~6.0
symfony/config Version ^4.4 || ^5.2
symfony/dependency-injection Version ^4.4 || ^5.2
symfony/finder Version ^4.4 || ^5.2
symfony/framework-bundle Version ^4.4 || ^5.2
symfony/http-foundation Version ^4.4 || ^5.2
symfony/http-kernel Version ^4.4 || ^5.2
symfony/routing Version ^4.4 || ^5.2
symfony/stopwatch Version ^4.4 || ^5.2
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 mvo/contao-facebook-import contains the following files

Loading the files please wait ....