Enable query detection with facetwp_is_main_query for a specific page and cpt

<?php
/** filter main query using while specifiying the page
 ** with FWP()->helper->get_uri()
 ** use page without domain and /'s, ex. 'somepage/mypage'
 **/

add_filter( 'facetwp_is_main_query', function( $is_main_query, $query ) {
    if ( 'my_page' == FWP()->helper->get_uri() && 'my_cpt' == $query->get( 'post_type' ) ) {
        $is_main_query = true;
    }
    return $is_main_query;

}, 10, 2 );