HA on standby; um working on another project. a kinda of Online WYSIWYG Visual novel editor
HybridAuth is an easy to install and use social sign on PHP Library. Connect users to a wide variety of well known social networks, grab their profiles, contact lists, update their status and even more.
http://hybridauth.sourceforge.net
Avery early semi tested beta 1.0.2 released on http://sourceforge.net/projects/hybridauth/files/
I finally got #Friendster #API #Authentication to work. http://bit.ly/pkZ9X
Libraries/Friendster/FriendsterAPI.php Patch
--- library/Libraries/Friendster/FriendsterAPI.php 2009/10/25 13:36:06 18
+++ library/Libraries/Friendster/FriendsterAPI.php 2009/10/25 15:01:30 19
@@ -614,7 +614,7 @@
* @params : array('status' => 'maried'), - get/post params
* @type : 'POST' || 'GET'
*/
- public function doRequest($method, $args, $params, $type = Request::GET,$response_type = FriendsterAPIResponseType::SARRAY) {
+ public function doRequest($method, $args, $params, $type = Request::GET,$response_type = FriendsterAPIResponseType::JSON) {
// http://api.friendster.com/getUser
$url = $this->server_base . $method;
@@ -634,7 +634,7 @@
}
$url .= $argstr;
}
-
+
//Set the requested format
if ($response_type == FriendsterAPIResponseType::XML) {
$params['format'] = 'xml';
@@ -682,21 +682,25 @@
} else {
$response = $req->execute($url, $param_string, $type);
}
-
+
$req = null;
if ($GLOBALS['friendster_api']['debug']) { echo "RESPONSE:\n["; print_r($response); echo "]\n\n"; }
-
- if ( $response_type != FriendsterAPIResponseType::SARRAY) {
- $result = $response;
- } else {
- $xml_obj = @simplexml_load_string($response, 'SimpleXMLElement', LIBXML_NOCDATA);
- if ($xml_obj instanceof SimpleXMLElement) {
- $result = self::sxml_to_array($xml_obj);
- } else {
- throw new FriendsterAPIException(FriendsterAPIErrorCodes::XML);
- }
- }
-
+
+ $result = json_decode( $response, TRUE );
+
+ /*
+ if ( $response_type != FriendsterAPIResponseType::SARRAY) {
+ $result = $response;
+ } else {
+ $xml_obj = @simplexml_load_string($response, 'SimpleXMLElement', LIBXML_NOCDATA);
+ if ($xml_obj instanceof SimpleXMLElement) {
+ $result = self::sxml_to_array($xml_obj);
+ } else {
+ throw new FriendsterAPIException(FriendsterAPIErrorCodes::XML);
+ }
+ }
+ */
+
return $result;
}
@@ -777,5 +781,3 @@
return $this->last_call_id;
} // getCallId
}
-
-?>
Integrating HybridAuth ยป Simple Sign-In Script
have to write the user guide. oh shit!
Yeah, for sure tumblr is the most exiting blogging platform i found. so here im,