Facebook doesn't fetch information from password protected blog?

admin

Administrator
Staff member
I've a wordpress blog that is password protected members only portal.. When I try to share the blog link, it doesn't fetch the title, image or description of the blog, rather it just show the login title. Nothing else..

This happen because I've this code in the functions file that direct to the main non-wp website.

Code:
if(!is_user_logged_in())
    wp_redirect('http://fxxx.com/?redirect_to=' . 
 $_SERVER["REQUEST_URI"]);

If this code is removed, it normally fetch all the information, including images..

Any solution for this? I didn't find any blogs about this on google..