FbBotApp.php
public function setTargetAudience($audience_type, $list_type=null, $countries_array=null){

        if ($audience_type === "custom") {
            return $this->call('me/messenger_profile', [
                'target_audience' => [
                    'audience_type' => $audience_type,
                    'countries' => [
                        $list_type => $countries_array
                    ]
               ]
            ], self::TYPE_POST);
        } else {
            return $this->call('me/messenger_profile', [
                'target_audience' => [
                   'audience_type' => $audience_type
               ]
            ], self::TYPE_POST);
        }
    }
public function setTargetAudience($audience_type, $list_type=null, $countries_array=null){

        if ($audience_type === "custom") {
            return $this->call('me/messenger_profile', [
                'target_audience' => [
                    'audience_type' => $audience_type,
                    'countries' => [
                        $list_type => $countries_array
                    ]
               ]
            ], self::TYPE_POST);
        } else {
            return $this->call('me/messenger_profile', [
                'target_audience' => [
                   'audience_type' => $audience_type
               ]
            ], self::TYPE_POST);
        }
    }
public function setTargetAudience ( $ audience_type , $ list_type = null , $ countries_array = null ) { if ( $ audience_type === "custom" ) { return $ this -> call ( 'me/messenger_profile' , [ 'target_audience' => [ 'audience_type' => $ audience_type , 'countries' => [ $ list_type => $ countries_array ] ] ] , self :: TYPE_POST ) ; } else { return $ this -> call ( 'me/messenger_profile' , [ 'target_audience' => [ 'audience_type' => $ audience_type ] ] , self :: TYPE_POST ) ; } }
Set Target Audience

@see https://developers.facebook.com/docs/messenger-platform/messenger-profile/target-audience
@param string $audience_type ("all", "custom", "none")
@param string $list_type ("whitelist", "blacklist")
@param array $countries_array
@return array
Set Target Audience