Project only to fun. It use PHP with active record pattern to search facebook data using FQl.
- PHP5.3+
- Facebook GraphApi (found on https://github.com/facebook/php-sdk)
- To code the methods getAll, save, load and any method to inner join
We'll use composer to manager our dependencies.
curl -s http://getcomposer.org/installer | php
php composer.phar install
Now, we have all dependencies on project.
-
Create the app on https://developers.facebook.com/apps
-
We use, autoload.php generate by composer with
<?php
require PATH_TO_VENDOR.'/autoload.php';
- Define the app's constants like
<?php
define('F_APP_ID',...);
define('F_SECRET',...);
Obs: you would only pass the Facebook object, yet configured to the FARpa's objects
<?php
$user = new User;
$user->load(); // $user is you facebook profile
<?php
$user = new User;
$photo = $user->getAlbum(7)->getPhotoMoreLikes();
$photo->toCover();
FARpa Copyright (C) 2012 Claudson Oliveira
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.