Forum Replies Created

Viewing 1 replies (of 1 total)
  • FYI, you’re missing a “{” at the end of line 14.

    Perhaps you can help me with my need, which is to allow Facebook’s crawler to see my content without a password. I tried the following, right where your code starts (instead of yours), with no luck:

    $userAgent = "";
    		$userAgent = @$_SERVER['HTTP_USER_AGENT'];
    		if (strpos($userAgent, 'facebookexternalhit') !== FALSE) {
    			//refresh logged in cookies
    			this->setCookie();
    		    return;
    		}
    		else {
    			$isLoggedIn = apply_filters( $this->_slug( "isLoggedIn" ), false );
    		}
    		if (false === $isLoggedIn ) {
    			do_action( $this->_slug( "displayLoginPage" ) );
    			exit;
    		}

    I even tried just a:


    this->setCookie();
    return;

    to try and make everything go around login…and it’s not working. So what obvious point am I missing?

Viewing 1 replies (of 1 total)