Ivan,
That function is marked as private, so it will be impossible to call it without changing it's scope to public.
In all honesty, that function is just 3 lines. I'd recommend you use that code directly where you need it. Unfortunately, if you're calling it from the loginregister.php file, you're guaranteed to get a false (since that's not your home page). I think you'd really want to add your code to the /components/com_jfbconnect/models/loginregister.php file in the getLoginRedirect function. In there, you can check the redirect parameter that's coming from the previous page (where the user clicked the button) against your home page and do what you need to do there.
Hope that helps get you started!
Alex