Download the PHP package nazmulhasan/laravel-facebook-post without Composer

On this page you can find all versions of the php package nazmulhasan/laravel-facebook-post. 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 laravel-facebook-post

Laravel Facebook Page Post

GitHub Downloads (all assets, all releases) GitHub License GitHub forks GitHub Repo stars

This package allow to create, update, delete and get posts from facebook page in laravel application

Requirements

Installation

You can install the package via composer:

Configuration

You can publish the configuration file config/facebook.php optionally by using the following command:

Configure .env file

Usage

Get All posts

Create Text post

Create Text post with photo

Update post

Delete post

Example Success Response

Example Failure Response

Limitations

How to generate access token?

  1. At first create a business type facebook app. Create app from Facebook Deveoper Panel
  2. Go to Facebook Graph Api Explorer
  3. Here you will see three select option:
    • Meta App
    • User or Page
    • Permissions
  4. Meta App: Here you will see all facebook app that you have created. Select your business type app from the dropdown list.
  5. User or Page: Here you need to select page access token. Then it will redirect you to your facebook page list. Select your preferred page and give necessary permission.
  6. Permissions: Please select the following permission from this permission list

    • pages_show_list
    • pages_read_engagement
    • pages_manage_engagement
    • pages_manage_posts
    • pages_read_user_content
  7. Finally click on the Generate Access Token button and it will generate temporary access token for one hour.

  8. If you want to make this token as long lived, you need to go Access Token Debugger. Insert the access token and click on the Debug button. Then it will show token information. Scroll down this page and you will see Extend Access Token. Click on this button and it will generate long lived access token.Then copy the access token and use this as FACEBOOK_ACCESS_TOKEN

Note:

If you want to generate never expiry access token, you need to follow this step:

If you face any issue or bug, please create an issue by using this link https://github.com/Nazmul7989/laravel-facebook-post/issues.

License

The MIT License (MIT). Please see License File for more information.

See Facebook Page Api for more details

See Facebook Long Lived Access Token for more details


All versions of laravel-facebook-post with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2|^7.4|^8.0|^8.1|^8.2|^8.3
illuminate/support Version ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
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 nazmulhasan/laravel-facebook-post contains the following files

Loading the files please wait ....