Download the PHP package kerigansolutions/facebookfeed without Composer

On this page you can find all versions of the php package kerigansolutions/facebookfeed. 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 facebookfeed

KMA WordPress Facebook Feed

Easily pull posts and events into your WordPress Site from a Facebook page that you manage.

Installation

composer require kerigansolutions/facebookfeed

Setup

Get your Facebook Page ID and Access token

Quick Start

Pagination

This package uses the default cursor-based pagination that is returned by the Facebook Graph API. Let's take a look at how to implement this in our WordPress site:

Make the API call and retrieve the results:

We've covered this already. So far, so good. Let's look at the returned data:

From the Facebook Graph API docs:

before : This is the cursor that points to the start of the page of data that has been returned.

after : This is the cursor that points to the end of the page of data that has been returned.

next : The Graph API endpoint that will return the next page of data. If not included, this is the last page of data. Due to how pagination works with visibility and privacy, it is possible that a page may be empty but contain a 'next' paging link. Stop paging when the 'next' link no longer appears.

previous : The Graph API endpoint that will return the previous page of data. If not included, this is the first page of data.

What does this mean?

Now we know where the data starts and stops so we can get our next five results by passing some new arguments to the fetch function. Observe:

NOTE: Cursors can change frequently and without warning from Facebook. DO NOT STORE cursors. Grab them dynamically and pass them to the next page using GET variables or another similar method

Embedded videos

In order to handle embedding videos from your Facebook statuses on to your WordPress page, you'll need to conditionally check if the post->type is video, set up a standard iframe and pass the returned link value for the post into the src attribute. The package currently handles embedded Facebook, Vimeo, and Youtube videos.

Events

Events are handled similarly to posts.

Docs are a work in progress and a more in-depth guide will be coming soon.


All versions of facebookfeed with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^6.3
nesbot/carbon Version ^1.22
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 kerigansolutions/facebookfeed contains the following files

Loading the files please wait ....