PHPackages                             codechap/f - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. codechap/f

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

codechap/f
==========

Posts to your own Facebook page only.

012PHP

Since Sep 19Pushed 8mo agoCompare

[ Source](https://github.com/codeChap/post.f)[ Packagist](https://packagist.org/packages/codechap/f)[ RSS](/packages/codechap-f/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP Facebook Page Post Library
==============================

[](#php-facebook-page-post-library)

A simple PHP library for posting to Facebook Pages using the Graph API. This package allows you to post text messages and photos to your Facebook page.

Requirements
------------

[](#requirements)

- PHP &gt;= 8.2
- cURL extension
- JSON extension
- Facebook App with Page access
- Long-lived Page Access Token

Installation
------------

[](#installation)

```
composer require codechap/f
composer require codechap/f @dev
```

Quick Start
-----------

[](#quick-start)

### 1. Setup

[](#1-setup)

Run the setup script to configure your Facebook page:

```
php setup.php
```

This will guide you through:

- Getting an access token from Facebook
- Selecting your Facebook page
- Saving the configuration

### 2. Post to Facebook

[](#2-post-to-facebook)

```
