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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:43:00+00:00 2026-05-26T04:43:00+00:00

I thought this would be simple, but I can’t figure it out or find

  • 0

I thought this would be simple, but I can’t figure it out or find any relavent search results.

I have a Page Tab on my Facebook Page that loads a page from my server in an iframe. I want the page to only be served if Facebook is requesting it.

I’ve heard of looking at the User Agent, but that doesn’t work. With PHP at least… I think.

If I have to I’ll resort to redirecting with JavaScript, but that’s just sloppy.

Ideally it would look something like this;

<?php
...
if ( ! $is_facebook )
{
    header("HTTP/1.1 404 Not Found");
}
?>
  • 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-26T04:43:01+00:00Added an answer on May 26, 2026 at 4:43 am

    You could just check the signed_request parameter as described at http://developers.facebook.com/docs/authentication/signed_request/ . If you don’t need much security just checking for its presence should be enough. If you need more certainty you can decode it to verify it really came from Facebook.

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

Sidebar

Related Questions

I thought this would be really easy but I can't find a simple solution,
I thought this would be simple but I can't seem to find a variable
I thought this would be simple, but.... How can I get the backgroundcolor of
I thought this would be simple, but I can't see how to tell WCF
I thought this would be easy to find, but a google search has been
I thought this would be simple, but for my life, I can't change the
I thought that this would be simple enough, but I just can't get my
I thought this would be a simple google search but apparently not. What is
I thought this would be a JBoss FAQ, but I can't find it. I'd
I thought this would be quite simple but then realised that I couldnt find

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.