I'm trying to use this argument: $string = bp_core_fetch_avatar

I'm trying to use this argument:
$string = bp_core_fetch_avatar( $args ); in the Invite Anyone plugin to get the user avatar

I want to know what I am doing wrong