• T.McGuire

    (@tmcguire)


    If you want to redirect to a Facebook profile you can add this snippet to your functions.php and add the ‘fb’ protocol to the list of allowed url’s to enter into the mobile redirect. If you don’t use this snippet then the url won’t be saved.

    This is the URL format to open a link in the facebook app: fb://profile/[profile ID goes here]

    /**
     * Allowing additional URL protocols to list of allowed protocols.
     *
     * @param array $protocols List of protocols allowed by (default WordPress.)
     *
     * @return array $protocols Updated list including additional protocols.
     */
    function custom_themo_add_additional_protocols( $protocols ){
        $protocols[] = 'fb';
        return $protocols;
    }
    add_filter( 'kses_allowed_protocols' , 'custom_themo_add_additional_protocols' );
  • The topic ‘Link to Facebook app profile’ is closed to new replies.