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 7518153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:40:29+00:00 2026-05-30T01:40:29+00:00

okay so im trying to enter a dynamic meta tag for the facebook api

  • 0

okay so im trying to enter a dynamic meta tag for the facebook api and some wierd things are happnening.

here is how im getting the value

$id = $_GET['id'];

$id = intval($id);

and this is where i input it.

 <meta property="og:url" content="http://blaze-craft.com/matt/gag.php?id=<?php echo $id ?       >" />
<meta property="og:image" content="http://blaze-craft.com/matt/get.php?id=<?php echo $id ?>" />

But it is always outputing the value as 0 even when its not 0. Also when i echo it out anywhere else on the page it works?

any help would be great thanks! 😀

Okay iv just seen in the source code it is being set

<html>
<head>
<title>YourGag - Gag</title>
<meta property="og:title" content="MyGag - Gag" />
<meta property="og:type" content="activity" />
<meta property="og:url" content="http://blaze-craft.com/matt/gag.php?id=2" />
<meta property="og:image" content="http://blaze-craft.com/matt/get.php?id=2" />
<meta property="og:site_name" content="YourGag" />
<meta property="fb:admins" content="1254694731" />
<link rel="stylesheet" href="style.css" type="text/css" />
</head>
<body>

but when im use the facebook debugger its saying that there is a 0 there instead of a 2!

seriosly wierd!

  • 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-05-30T01:40:30+00:00Added an answer on May 30, 2026 at 1:40 am

    Have you tried debugging the value of $_GET['id'] before attempting to cast as an int?

    Per the documention (intval):

    Return Values

    The integer value of var on success, or 0 on failure. Empty arrays
    return 0, non-empty arrays return 1.

    So $_GET['id'] is either an empty array or cannot be returned as an integer value.

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

Sidebar

Related Questions

Okay I'm trying to go for a more pythonic method of doing things. How
Okay, here's what I'm trying to do: I'm trying to use PHP to develop
Okay, Here is what I'm trying to do... Right now it is compiling but
Okay, I'm stumped. I'm fiddling with some project settings, trying to start linking against
Okay so here is the deal. As the question states, I'm trying to POST
Okay, so here is what I'm trying to do. The user inputs a number.
Okay I'm trying to have a custom keypad pop-up when I want to enter
Okay I have been trying to get this to work for some time now.
okay so here is my problem in my main project I'm trying to fire
Okay so I'm trying to make a little gag program that will run away

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.