public function getHome($user, $filter = null, $location = false, $limit = 0, $offset = 0, $until = null, $since = null)
	{
		$extra_fields = '';

		if ($filter != null)
		{
			$extra_fields = '?filter=' . $filter;
		}

		if ($location == true)
		{
			$extra_fields .= (strpos($extra_fields, '?') === false) ? '?with=location' : '&with=location';
		}

		return $this->getConnection($user, 'home', $extra_fields, $limit, $offset, $until, $since);
	}
public function getHome($user, $filter = null, $location = false, $limit = 0, $offset = 0, $until = null, $since = null)
	{
		$extra_fields = '';

		if ($filter != null)
		{
			$extra_fields = '?filter=' . $filter;
		}

		if ($location == true)
		{
			$extra_fields .= (strpos($extra_fields, '?') === false) ? '?with=location' : '&with=location';
		}

		return $this->getConnection($user, 'home', $extra_fields, $limit, $offset, $until, $since);
	}
public function getHome ( $ user , $ filter = null , $ location = false , $ limit = 0 , $ offset = 0 , $ until = null , $ since = null ) { $ extra_fields = '' ; if ( $ filter != null ) { $ extra_fields = '?filter=' . $ filter ; } if ( $ location == true ) { $ extra_fields .= ( strpos ( $ extra_fields , '?' ) === false ) ? '?with=location' : '&with=location' ; } return $ this -> getConnection ( $ user , 'home' , $ extra_fields , $ limit , $ offset , $ until , $ since ) ; }
Method to get the user's news feed. Requires authentication and read_stream permission.

@param   mixed    $user      Either an integer containing the user ID or a string containing the username.
@param   string   $filter    User's stream filter.
@param   boolean  $location  Retreive only posts with a location attached.
@param   integer  $limit     The number of objects per page.
@param   integer  $offset    The object's number on the page.
@param   string   $until     A unix timestamp or any date accepted by strtotime.
@param   string   $since     A unix timestamp or any date accepted by strtotime.

@return  mixed   The decoded JSON response or false if the client is not authenticated.

@since   1.0
Method to get the user s news feed . Requires authentication and read_stream permission .