Socialfeast API

Call to Action!

We would love for the community to submit wrappers for your favorite language and framework for v2 of the API.
API v1 Wrappers

While v1 of the API will not be available for future projects, we wish to recognize the support of the community in developing and providing wrappers for it in the past.


SF team built a PHP Library for communicating with SF Web service. Following is the code example to call web services,

    $api_key='XXXXX'; // Socialfeast API key
    $sessid = 'XXXXX'; // Call system.connect api to get session of socialfeast
    $domain = SF_API_DOMAIN_NAME;
    $timestamp = (string) time();
    $nonce = $timestamp; // It should be unique in every call
    $method = SF_API_METHOD_NAME; // Like api.user.login , api.system.connect
    $hash = hash_hmac('sha256', $timestamp .';'.$domain .';'. $nonce .';'.'api.user.login',$key );

// Calling UserLogin Service (API.USER.LOGIN)
  $data = array(
               'method' => SF_API_DOMAIN_NAME, (api.user.login)
               'domain_name' => $domain,
               'domain_time_stamp' => $timestamp ,
               'timestamp' => $timestamp ,
               'nonce' => $nonce ,		
               'sessid' =>$sessid,
              'username'        => $username,
               'password' => $password


$curl = curl_init($url);
curl_setopt($curl, CURLOPT_HTTPHEADER, array('Accept: application/json')); // Accept JSON response
curl_setopt($curl, CURLOPT_POST, 1); // Do a regular HTTP POST
curl_setopt($curl, CURLOPT_POSTFIELDS, $data); // Set POST data
curl_setopt($curl, CURLOPT_HEADER, FALSE); // Ask to not return Header
curl_setopt($curl, CURLOPT_COOKIE, $sessid); // use the previously saved session
curl_setopt($curl, CURLOPT_FAILONERROR, TRUE);

$output = curl_exec($curl);

}catch(Exception $e){


Objective C

SF team built a Objective-c Library for communicating iOS apps with SF Webservice