| CARVIEW |
facebook is using GitHub to share code with you!
GitHub is more than just a place to share code. It's a place to keep tabs on your favorite developers and projects, easily contribute fixes and new features, and visualize what's going on inside your codebase!
Free for open source
- Source
- Commits
- Network
- Pull Requests (1)
- Issues (16)
- Wiki (10)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage
| name | age | message | |
|---|---|---|---|
| |
examples/ | Wed Aug 04 17:21:47 -0700 2010 | added option to enable fileUpload using curl @ ... [nshah] |
| |
readme.md | Thu Apr 29 11:43:19 -0700 2010 | Fixed examples link [nshah] |
| |
src/ | Tue Oct 05 12:00:22 -0700 2010 | Add PHP code to use the new bundled certificates. [scottmac] |
| |
tests/ | Wed Nov 17 13:15:39 -0800 2010 | fix unit tests [nshah] |
Facebook PHP SDK
The Facebook Platform is a set of APIs that make your application more social. Read more about integrating Facebook with your web site on the Facebook developer site.
This repository contains the open source PHP SDK that allows you to utilize the above on your website. Except as otherwise noted, the Facebook PHP SDK is licensed under the Apache Licence, Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.html)
Usage
The examples are a good place to start. The minimal you'll need to have is:
<?php
require './facebook.php';
$facebook = new Facebook(array(
'appId' => 'YOUR APP ID',
'secret' => 'YOUR API SECRET',
'cookie' => true, // enable optional cookie support
));
To make API calls:
try {
$me = $facebook->api('/me');
} catch (FacebookApiException $e) {
error_log($e);
}
Logged in vs Logged out:
if ($facebook->getSession()) {
echo '<a href="' . $facebook->getLogoutUrl() . '">Logout</a>';
} else {
echo '<a href="' . $facebook->getLoginUrl() . '">Login</a>';
}
Feedback
We are relying on the GitHub issues tracker linked from above for feedback. File bugs or other issues here.
Tests
In order to keep us nimble and allow us to bring you new functionality, without compromising on stability, we have ensured full test coverage of the new SDK. We are including this in the open source repository to assure you of our commitment to quality, but also with the hopes that you will contribute back to help keep it stable. The easiest way to do so is to file bugs and include a test case.
- © 2010 GitHub Inc. All rights reserved.
- Terms of Service
- Privacy
- Security
Keyboard Shortcuts
Site wide shortcuts
- s
- Focus site search
- ?
- Bring up this help dialog
Commit list
- j
- Move selected down
- k
- Move selected up
- t
- Open tree
- p
- Open parent
- c or o or enter
- Open commit
Pull request list
- j
- Move selected down
- k
- Move selected up
- o or enter
- Open issue
Issues
- j
- Move selected down
- k
- Move selected up
- x
- Toggle select target
- o or enter
- Open issue
- I
- Mark selected as read
- U
- Mark selected as unread
- e
- Close selected
- y
- Remove selected from view
- c
- Create issue
- l
- Create label
- i
- Back to inbox
- u
- Back to issues
- /
- Focus issues search
Network Graph
- ← or h
- Scroll left
- → or l
- Scroll right
- ↑ or k
- Scroll up
- ↓ or j
- Scroll down
- t
- Toggle visibility of head labels
- shift ← or shift h
- Scroll all the way left
- shift → or shift l
- Scroll all the way right
- shift ↑ or shift k
- Scroll all the way up
- shift ↓ or shift j
- Scroll all the way down