Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8310097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T19:20:09+00:00 2026-06-08T19:20:09+00:00

I use session values to set the content of facebook meta tag : <meta

  • 0

I use session values to set the content of facebook meta tag :

<meta property="og:title" content="<?php print $_GET['p']; ?>"/>

when I view source of the website the html appears like this :

<meta property="og:title" content="Alex Atalla"/>

which means it is successfully filled the value of session value in the content of title meta tag.

But when I use facebook debugger it says that :

Object Missing a Required Value:    Object at URL 'http://www.palestinianz.com/' of type 'website' is invalid because a required property 'og:title' of type 'string' was not provided.

what is the problem ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T19:20:11+00:00Added an answer on June 8, 2026 at 7:20 pm

    Set a default value

    if(!isset($_GET['p'])){
    $value = 'default value';
    }else{
    $value = $_GET['p'];
    }
    
    <meta property="og:title" content="<?php echo $value; ?>"/>
    

    The default value will be there on your home page OG

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My configuration: app.configure(function(){ app.set('views', __dirname + '/views'); app.set('view engine', 'jade'); app.use(express.bodyParser()); app.use(express.cookieParser()); app.use(express.session({ secret:
can session values be null if they are not set? or should I use
I am trying to use PHP session without using cookies. I have enabled session.use_trans_sid
I'm running nginx 1.2.3 / php-fpm 5.4.6 and trying to use the Session upload
I am new to use session management & I am using struts with MySQL
I am trying to use session data on multiple subdomains: www.example.com my.example.com test.example.com whateversub.example.com
I want to use session object in my web app.I want to store some
I have a Sinatra app using Rack::Session::Cookie use Rack::Session::Cookie, :key => 'my.key', :path =>
This is an interview question asked a month ago.... Do session use cookies? If
I'm going to use Codeigniter's session data for my login system, but first I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.