PHPackages                             rinatio/facebook - 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. [API Development](/categories/api)
4. /
5. rinatio/facebook

ActiveLibrary[API Development](/categories/api)

rinatio/facebook
================

v0.1(12y ago)118MITPHPPHP &gt;=5.3

Since Oct 14Pushed 12y ago1 watchersCompare

[ Source](https://github.com/rinatio/Facebook)[ Packagist](https://packagist.org/packages/rinatio/facebook)[ RSS](/packages/rinatio-facebook/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Facebook Test User API wrapper
==============================

[](#facebook-test-user-api-wrapper)

This is a wrapper for Facebook [Test User API](https://developers.facebook.com/docs/test_users). It allows you to create, read, update and delete Facebook test users in OOP style.

\##Installation

You can install it through [composer](http://getcomposer.org/) with this command:

```
$ php composer.phar require --dev rinatio/Facebook:~0.1

```

After installing, you need to require Composer's autoloader:

```
require 'vendor/autoload.php';

```

\##Usage

Load namespaced classes like this:

```
use rinatio\Facebook\Test\User as TestUser;
use rinatio\Facebook\Facebook;

```

Define your Facebook [application](http://developers.facebook.com/docs/web/) credentials:

```
Facebook::setAppId('fbAppId');
Facebook::setAppSecret('fbAppSecret');

```

Now you're ready to go. Here are some examples

Create a new users:

```
$user1 = TestUser::create(array(
    'name' => 'Butch Cassidy'
));

```

Fetch user's profile

```
$user2 = TestUser::create(array(
    'name' => 'Etta Place'
));
$user2->fetchProfile();
echo $user2->first_name; // outputs 'Etta'

```

Get all test users created for application:

```
$users = TestUser::all();

```

Change user's name or password:

```
$user2->update(array(
    'name' => 'Sundance Kid'
))

```

Add friends connection:

```
$user1->addFriend($user2);

```

Delete user:

```
$user1->delete();

```

Or delete all users:

```
TestUser::deleteAll()

```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4643d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/28bc518734b46844f59e87b8f21c7988f030df9c4441084f2005b7eff13d84fb?d=identicon)[rinat.io](/maintainers/rinat.io)

---

Top Contributors

[![rinatio](https://avatars.githubusercontent.com/u/426879?v=4)](https://github.com/rinatio "rinatio (11 commits)")

---

Tags

facebook

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rinatio-facebook/health.svg)

```
[![Health](https://phpackages.com/badges/rinatio-facebook/health.svg)](https://phpackages.com/packages/rinatio-facebook)
```

###  Alternatives

[facebook/php-business-sdk

PHP SDK for Facebook Business

91624.2M36](/packages/facebook-php-business-sdk)[facebook/php-ads-sdk

PHP SDK for Facebook Business

9214.2M8](/packages/facebook-php-ads-sdk)[nickdnk/graph-sdk

Facebook SDK for PHP 8+

482.0M6](/packages/nickdnk-graph-sdk)[janu-software/facebook-php-sdk

Alternative toolkit for Facebook Graph API

71769.8k2](/packages/janu-software-facebook-php-sdk)[joelbutcher/facebook-graph-sdk

Facebook SDK for PHP

42816.3k1](/packages/joelbutcher-facebook-graph-sdk)[kerox/messenger

PHP Library to interact with Facebook Messenger Platform

58318.7k1](/packages/kerox-messenger)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
