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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:38:09+00:00 2026-05-24T17:38:09+00:00

(Since FBML and FBJS are deprecated by Facebook, I cannot use those approaches to

  • 0

(Since FBML and FBJS are deprecated by Facebook, I cannot use those approaches to pass data to my server).

I have an IFRAME facebook application, mainly built to be used by pages.

When the page admin visits my application tab in their page, they see a settings page where they will be add information about their page. I have a submit button as well. Once the page admin submits information about his page, it will be sent to my server and it will be stored along with the page ID. Once this setup is done, when other users visits this application tab in the page, they will see the information posted by the page admin.

I am using Facebook’s PHP SDK in the server side to decode the signed request and get the page ID.

The following is the code in my application’s index.php to send data to my server (along with the user input, page ID will also be passed, not shown here)

function sendData() {
    $.post('ajax.php', {
        data : $("#userdata").val()
    }, function(data) {
        alert(data);
    });
}
</script>

The following is the simple ajax.php script. This is just a test script as of now.

<?php
echo "<pre>" . print_r($_POST) . "</pre>";
?>

The problem is only the user data is being sent to the server. There is a security problem in this approach. I want to send ‘signed_request’ (that facebook sends initially to my index.php, using which I validate the request) along with the user data, so I can validate the request from the server side and update the information for the right page. Else, anyone can post a request like this and update the information for any page.

firebug image

  • 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-24T17:38:09+00:00Added an answer on May 24, 2026 at 5:38 pm

    All you need to do is use the Facebook PHP SDK in your server side ajax script as well, then you can check that the request was sent by someone with a valid Facebook session who has authorized your app.

    If you are concerned that multiple people using your application will try and send fake requests to alter each others page settings, then you just need to store some information about which Facebook Ids are associated with the Facebook pages they administer.

    For example, while sending the request to the server, send the page ID along with a encrypted key derived from the page ID (keep this encrypted key in a hidden field while displaying itself). In the server, decrypt this key to match with the page ID. By this way, you can be sure that the page admins are modifying the information for ‘their’ pages only.

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

Sidebar

Related Questions

I previously have an FBML application in Facebook and now change to an IFrame
We currently have an iframe-based Facebook canvas application in the works. The canvas portion
I am working on a Facebook iFrame application, and have a question about styling.
How do I code a Facebook quote application taking its data from PHP/MySQL page
In my current .NET and FBML-based facebook app, I have some code that looks
Since I'm using Java 1.4.2, this means that I cannot use Java's implementation of
Since black red tree is a binary search tree I have decided to use
Since facebook is deprecating fbml, could someone point me in the direction of what
It has been a long time since I have developed content in Facebook, so
Since CS3 doesn't have a web service component, as previous versions had, is there

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.