Skip to content

Instantly share code, notes, and snippets.

@trustmaster
Created October 31, 2013 11:07
Show Gist options
  • Save trustmaster/7247940 to your computer and use it in GitHub Desktop.
Save trustmaster/7247940 to your computer and use it in GitHub Desktop.
Odnoklassniki HybridAuth setStatus example
$hybrid = new HybridAuth();
// Odnoklassniki bypass friend selection and just post status
try
{
$fullname = "{$hybrid->profile->firstName} {$hybrid->profile->lastName}";
$hybrid->adapter->setUserStatus($L['quest_wall_message'] . $fullname. ', ' . "http://example.com/quest?guess={$usr['id']}");
}
catch (Exception $e) { /* Handle errors here */ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment