iampersistent / facebook-graph

Facebook Graph API 的命名空间接口和类

dev-master / 0.1.x-dev 2013-07-07 05:44 UTC

This package is auto-updated.

Last update: 2024-09-18 20:44:28 UTC


README

Build Status

使用 GraphAPI 从 Facebook 获取数据,并将数据以对象的形式返回。

安装

git clone git://github.com/IamPersistent/facebook-graph.git
cd facebook-graph
git submodule update --init

使用方法

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');

待办事项

  • 为 fetch*() 函数添加功能测试
  • 为 api 添加写方法
  • 为以下 Facebook 对象创建类
    • 成就(实例)
    • 相册
    • 应用程序
    • 检入
    • 评论
    • 域名
    • 朋友列表
    • 群组
    • 洞察
    • 链接
    • 消息
    • 笔记
    • 订单
    • 页面
    • 照片
    • 问题
    • 问题选项
    • 评论
    • 订阅
    • 线程
    • 用户
    • 视频

参考资料

[ http://developers.facebook.com/docs/reference/api/ ]