1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can't figure out how FB's OpenGraph works...

Discussion in 'XenForo Development Discussions' started by Jaxel, Feb 19, 2014.

  1. Jaxel

    Jaxel Well-Known Member

    So I have a page here:

    The class for this page is simple:
    class EWRcanal_ControllerPublic_Channels extends XenForo_ControllerPublic_Abstract
        public function actionIndex()
            $slug = $this->_input->filterSingle('string_id', XenForo_Input::STRING);
            $channel = $this->getModelFromCache('EWRcanal_Model_Channels')->getChannel($slug);
            $viewParams = array(
                'channel' => $channel,
            return $this->responseView(
                'EWRcanal_ViewPublic_Channel', 'EWRcanal_Channel', $viewParams,
                array('containerTemplate' => 'EWRcanal_CONTAINER')
    When I run this page through the Facebook Object Debugger it gets a 503 error:

    When you view the raw scraped URL, you see:

    Why is this happening? Anyone know?
  2. Chris D

    Chris D XenForo Developer Staff Member

    Your board is switched off.

    503 means "service unavailable".

    This is expected. If guests can't see your content, how can Facebook?
  3. Jaxel

    Jaxel Well-Known Member

    You know... I completely forgot about that...

    Okay, next question... is there a way to set a specific section of your forum to ignore the board on/off switch?
  4. Chris D

    Chris D XenForo Developer Staff Member

    The code that asserts whether the board is active or not is in -- I forget -- either XenForo_Controller or XenForo_ControllerPublic_Abstract.

    Maybe you can override its behavior there.
  5. Jaxel

    Jaxel Well-Known Member


Share This Page