https://github.com/atiksoftware/php-class-facebook
PHP image or text post on facebook as mobile login with username and password.
https://github.com/atiksoftware/php-class-facebook
Last synced: 12 months ago
JSON representation
PHP image or text post on facebook as mobile login with username and password.
- Host: GitHub
- URL: https://github.com/atiksoftware/php-class-facebook
- Owner: atiksoftware
- Created: 2018-11-18T01:02:30.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-18T01:12:38.000Z (over 7 years ago)
- Last Synced: 2025-05-10T06:41:35.604Z (about 1 year ago)
- Language: PHP
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# php-class-facebook
PHP image or text post on facebook as mobile login with username and password.
----------
## Installation
### Using Composer
```sh
composer require atiksoftware/php-class-facebook
```
```php
require __DIR__.'/../vendor/autoload.php';
use \Atiksoftware\Facebook\Facebook;
$fb = new Facebook();
```
#### _login and post data_
```php
try {
$fb->login("username","password");
} catch (Exception $e) {
echo $e->getMessage();
}
try {
$fb->post("pageid","message_text","image_file_path");
} catch (Exception $e) {
echo $e->getMessage();
}
```