1

I am using a template on a page via a shortcode and using a URL parameter to indicate what data should be displayed. It displays perfectly on the site, BUT when you pass the page URL to the Facebook Open Graph Object Debugger, the code reacts as if the parameter is not there and, according to the coding, redirect to a page not found.

 add_shortcode('DETAILS_PAGE', 'details_Page');
 function details_Page($atts)
  {
  // Get the database record for this details
  $DatabaseId = $_GET['ls'];

  if(!is_numeric ($DatabaseId))
    {
    // GO TO MISSING PAGE. PAGE IS NOT VALID. 
    DebugLog('Not numberid: DBID: ' . $DatabaseId );
    header('Location: /missing-page/');  <=== facebook see this page
    return;
   }
 }

Does anyone have any experience with the Open Graph Object process? It is like it does not wait until the page is built or something. Bit of mystery and I new in this area of development.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.