Helping you connect to third-party RESTful APIs using HTTP and OAuth 2.0
- Log into Facebook and Google+ using OAuth2.0
- Get users' profile information and feeds
- Now with Facebook Like! (Unlike in active development)
http.class.php
This class gives you more control over error-handling than PHP's file_get_contents
oauth2.php
-
Rename
example.keys.php
tokeys.php
and add your apps' secrets and client IDs.If you're using this code as part of an open source project, do one of the following:
-
Save keys.php in a different folder and update either
require_once('keys.php')
or your PHP include_path -
Add
keys.php
to your .gitignoreI cannot be held responsible if you allow your apps' secrets to become public
-
- Facebook Login
- Google+ Login
- Foursquare
- Windows Live
- Easy-to-set Icon Sets