Version 3.2.3
This commit is contained in:
1 parent
ae5c01cc78
commit
78706903a2
2641 files changed
+228363
-201264
No files matched your search
@@ -4,7 +4,7 @@
|
||||
* Simple oAuth wrapper for Facebook
|
||||
* Designed to stream line log in and token exchange
|
||||
* By Matt Mecham (Invision Power Services, Inc)
|
||||
* http://www.invisionpower.com
|
||||
* http://hatynka.in
|
||||
* April 2010
|
||||
*
|
||||
* Version 0.1
|
||||
@@ -15,40 +15,40 @@ class FacebookOAuth
|
||||
/**
|
||||
* Facebook Application ID
|
||||
* @var int
|
||||
* @access private
|
||||
* @access protected
|
||||
*/
|
||||
private $_appId;
|
||||
protected $_appId;
|
||||
|
||||
/**
|
||||
* Facebook Application Secret
|
||||
* @var string
|
||||
* @access private
|
||||
* @access protected
|
||||
*/
|
||||
private $_appSecret;
|
||||
protected $_appSecret;
|
||||
|
||||
/**
|
||||
* Call back URL
|
||||
* URL to redirect oAuth requests to after processing at Facebook
|
||||
* @var string
|
||||
* @access private
|
||||
* @access protected
|
||||
*/
|
||||
private $_callBackUrl;
|
||||
protected $_callBackUrl;
|
||||
|
||||
/**
|
||||
* Permissions scope
|
||||
* Array containing required permissions
|
||||
* @var array
|
||||
* @access private
|
||||
* @access protected
|
||||
*/
|
||||
private $_permsScope = array();
|
||||
protected $_permsScope = array();
|
||||
|
||||
/**
|
||||
* Form Factor
|
||||
* @link http://developers.facebook.com/docs/authentication/
|
||||
* @var string
|
||||
* @access private
|
||||
* @access protected
|
||||
*/
|
||||
private $_formFactor = '';
|
||||
protected $_formFactor = '';
|
||||
|
||||
/**
|
||||
* Last http code (200, 403, etc)
|
||||
@@ -211,13 +211,13 @@ class FacebookOAuth
|
||||
/**
|
||||
* Make an HTTP request
|
||||
*
|
||||
* @param private
|
||||
* @param protected
|
||||
* @param string URL
|
||||
* @param string Method (post or get)
|
||||
* @param array Post data to send
|
||||
* @return API results
|
||||
*/
|
||||
private function _send($url, $method='POST', $postfields=NULL)
|
||||
protected function _send($url, $method='POST', $postfields=NULL)
|
||||
{
|
||||
/* Compress post fields */
|
||||
if ( is_array( $postfields ) AND count( $postfields ) )
|
||||
|
||||
Reference in new issue
Block a user