没有任何数据可供显示
| 开源项目社区 | 当前位置 : |
|
| www.trustie.net/open_source_projects | 主页 > 开源项目社区 > servicesfacebook |
|
servicesfacebook
|
| 0 | 0 | 0 |
| 贡献者 | 讨论 | 代码提交 |
Services_FacebookAboutA PHP interface for accessing Facebook's web services API. Services_Facebook has been approved as an official PEAR package.
InstallationInstall PEAR if it is not already installed on your system. If you have installed a version of Services_Facebook prior to it being accepted as an official PEAR package you will want to uninstall it by running pear uninstall Services_Facebook. Run pear install Services_Facebook Example<?php
require_once 'Services/Facebook.php';
Services_Facebook::$apiKey = 'xxx';
Services_Facebook::$secret = 'xxx';
try {
$fb = new Services_Facebook();
$fb->sessionKey = $sessionKey;
$result = $fb->users->getInfo($uid);
echo (string)$result->user->about_me . "\n";
} catch (Services_Facebook_Exception $e) {
echo $e->getLastCall() . "\n";
echo $e->getMessage();
}
?>
标签:
