iampersistent / facebook-graph
Namespaced interface and classes for Facebook Graph API
dev-master / 0.1.x-dev
2013-07-07 05:44 UTC
Requires
- php: >=5.3.0
- doctrine/common: >=2.2.0,<2.5-dev
- facebook/php-sdk: 3.2.*
This package is auto-updated.
Last update: 2024-11-18 21:00:44 UTC
README
Use GraphAPI to retrieve data from Facebook and return that data in objects.
Install
git clone git://github.com/IamPersistent/facebook-graph.git
cd facebook-graph
git submodule update --init
Usage
require('facebook.php');
$facebookSdk = new \Facebook(array(
'appId' => id,
'secret' => secret,
));
$api = new \Facebook\Graph\GraphAPI($facebookSdk);
$posts = $api->fetchPosts('eight53');
$events = $api->fetchEvents('eight53');
Todo
- Add functional tests for fetch*() functions
- Add methods to api to write
- Create classes for the following Facebook objects
- Achievement(Instance)
- Album
- Application
- Checkin
- Comment
- Domain
- FriendList
- Group
- Insights
- Link
- Message
- Note
- Order
- Page
- Photo
- Question
- QuestionOption
- Review
- Subscription
- Thread
- User
- Video