A very simple and small PHP script for creating app specific test Facebook accounts.
http://code.enga.ge/fb-generator/
It's always nice to test a Facebook App your working on from complete scratch. This script will allow you to easily create test Facebook accounts for your applications.
For more information, please see the Facebook Official Documentation:
- https://developers.facebook.com/docs/test_users/
- https://developers.facebook.com/docs/technical-guides/opengraph/publishing-with-app-token/
Easy Way:
-
Download files
-
Upload to server
-
Change includes/facebook.php APP_ID and APP_SECRET to your application
<?php class Facebook { protected $app_id = 'YOUR_APP_ID'; // Your Facebook App ID protected $app_secret = 'YOUR_APP_SECRET'; // Your Facebook App Secret ...
Slightly Less Easy Way:
-
Include Facebook.php in your script
-
Initiate the Facebook class
-
Call the get_test_account($name) function
<?php include 'includes/facebook.php'; $facebook = new facebook(array('app_id' => 'YOUR_APP_ID', 'app_secret' => 'YOUR_APP_SECRET')); $name = 'Wally West'; $test_account = $facebook->get_test_account($name);
- Limitations of Test Accounts versus Real Accounts: https://developers.facebook.com/docs/test_users/#limitations
- This is free to use. No attribution required. Governed under the MIT license (http://opensource.org/licenses/MIT).
- Use this script at your own risk