Important Currently only Facebook, Twitter, Identica, LinkedIn, QQ, Sina, Murmur, Pixnet and Plurk do support this feature. Others providers will throw an exception (#8 "Provider does not support this feature"), when setUserStatus() is called. Please refer to the user guide to know more about each adapters capabilities.

Since HybridAuth 2.0.7, we can set the user status or post to his wall simply by using a generic funtion across social networks.

Example

  // init hybridauth
  $hybridauth = new Hybrid_Auth( $config );

  // try to authenticate with twitter
  $adapter = $hybridauth->authenticate( "Twitter" );

  // update the user status
  $adapter->setUserStatus( "Hi there! this is just a random update to test some stuff" );

For facebook we can add even more informations to the user update:

  // init hybridauth
  $hybridauth = new Hybrid_Auth( $config );

  // try to authenticate with twitter
  $adapter = $hybridauth->authenticate( "Facebook" );

  // update the user status
  $adapter->setUserStatus(
    array(
       "message" => "", // status or message content
       "link"    => "", // webpage link
       "picture" => "", // a picture link
    )
  );