Download the PHP package xmhafiz/fb-page-feed without Composer

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

Get Facebook Page Feed

Build Status Coverage Packagist

It is simple wrapper class written in php to fetch posts from certain Facebook page.

Currently I am using Facebook graph API with cool guzzle and dotenv

Tested in PHP 7.0, 7.1, 7.4, 8.0

Requirement

Installation

Step 1: Getting Facebook App

Step 2: Install from composer

Alternatively, you can specify as a dependency in your project's existing composer.json file

Usage

After installing, you need to require Composer's autoloader and add your code.

Default (maximum post is 100)

Set Module

Custom Maximum Post Shown

Filter By Keyword

Change Request Field

To get owner's fb page feed using userAccessToken

Details to get userAccessToken can refer here.

Code Example

Change the $fbSecretKey and $fbAppId based on the "App ID" and "App Secret" in Step 1

Using ENV

Then, Just

Method

Method Param Description
setAppId String FB Application ID (Default is in .env)
setSecretKey String FB Application Secret ID (Default is in .env)
setCredential String, String Set Both Secret and App Id (Default is in .env)
fields String List of Attributes (Default : id,message,created_time,from,permalink_url,full_picture)
setPage String Set Page Name (Default is in .env)
findKeyword String | Array Filter String by certain Keywords
feedLimit Integer Set result count limit

Result

You should getting data similarly like below:

Notes

To use 'Page Public Content Access', your use of this endpoint must be reviewed and approved by Facebook. To submit this 'Page Public Content Access' feature for review please read our documentation on reviewable features: https://developers.facebook.com/docs/apps/review.

To use with dotenv

License

Licensed under the MIT license


All versions of fb-page-feed with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
guzzlehttp/guzzle Version ^7.3
ext-json Version *
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 xmhafiz/fb-page-feed contains the following files

Loading the files please wait ....