Disable User Dashboard at wp-admin

I want to disable user Dashboard access completley, normally this would work:

function no_mo_dashboard() {

if (!current_user_can(‘manage_options’ )&& $_SERVER != ‘/wp-admin/admin-ajax.php’:wink: {

wp_redirect(home_url()); exit;

}

}

add_action(‘admin_init’, ‘no_mo_dashboard’:wink:;

But the Ultimate Facebook plugin doesn’t log me in with 1-click login as soon as this is enabled. Is there a better way to do it ?

Also, is there a way to have Ultimate Facebook redirect user to /$username/profile/edit after sign-up (first 1-click login) ?