Version 3.3.4
This commit is contained in:
1 parent
78706903a2
commit
fb6b5baabc
2206 files changed
+409828
-382984
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://hatynka.in
|
||||
* http://www.invisionpower.com
|
||||
* April 2010
|
||||
*
|
||||
* Version 0.1
|
||||
@@ -197,9 +197,13 @@ class FacebookOAuth
|
||||
/* Send it and hope to receive access_token=blah */
|
||||
$result = $this->_send( $url, 'GET' );
|
||||
|
||||
if ( preg_match( "#^access_token=(.*)$#", $result, $match ) )
|
||||
$params = null;
|
||||
|
||||
parse_str($result, $params);
|
||||
|
||||
if ( $params['access_token'] )
|
||||
{
|
||||
return $match[1];
|
||||
return $params['access_token'];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user