Redirect log in user to their primary site

There is any way to redirect log in users in my multitude to their primary site ?

I found this code:

Plugin Name: Redirect Users to Primary Site
Plugin URI:
Description: Never see "you do not currently have privileges on this site" when logging in on your multisite ever again!
Version: 2014.06.02
Author: khromov
Author URI:
License: GPL2

/* */
add_filter('login_redirect', function($redirect_to, $request_redirect_to, $user)
    if (!is_wp_error($user) && $user->ID != 0)
        $user_info = get_userdata($user->ID);
        if ($user_info->primary_blog)
            $primary_url = get_blogaddress_by_id($user_info->primary_blog) . '';
            if ($primary_url) {
    return $redirect_to;
}, 100, 3);

It's working great but it's not applying to Ultimate facebook plugin when a user log in through facebook. I can only set Admin_url or Site_url..

So there is a way I can disable the redirection of the plugin or there is a way through url to get them to their primary site ?

Have a great week.
Thanks !