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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T15:52:14+00:00 2026-05-24T15:52:14+00:00

i am using this widget to get my users to create accounts: <iframe src=http://www.facebook.com/plugins/registration.php?

  • 0

i am using this widget to get my users to create accounts:

<iframe src="http://www.facebook.com/plugins/registration.php?
         client_id=113869198637480&
         redirect_uri=http%3A%2F%2Fdevelopers.facebook.com%2Ftools%2Fecho%2F&
         fields=name,birthday,gender,location,email"
    scrolling="auto"
    frameborder="no"
    style="border:none"
    allowTransparency="true"
    width="100%"
    height="310px">
</iframe>

but wen i click on the submit button i want to send the information to a link like :

http://www.xxx.com/Index.php?url=/leads/form&client_code=" Facebook"&name="XXX"&phone="XXXX"&email="test@XXX.com"

any ideas how to pass those vars to the redirect_uri ? I see that the response comes in json, so should i set some vars that grab the info from the json response and then pass them to the url?

any idea helps,
Thanks

edit.
the response that i get back is not complete for some reason:
i cant see the email, gender, etc

 Array
(
[algorithm] => HMAC-SHA256
[expires] => 1313038800
[issued_at] => 1313033344
[oauth_token] => 103750869718158|2.AQAx-VOlqYgoM6yr.3600......
[user] => Array
    (
        [country] => us
        [locale] => en_US
        [age] => Array
            (
                [min] => 21
            )

    )

[user_id] => 100002389272431
)

edit:
to get the sign_request i use this script and i set my redirect_uri to my Canvas Page.
i have placed the registration form and the php in the same file.

the problem is that i dont get all the data that i place in the form

define('FACEBOOK_APP_ID', '113869....637480');
define('FACEBOOK_SECRET', '0f60d2c.........4f6f921c899');
function parse_signed_request($signed_request, $secret) {
list($encoded_sig, $payload) = explode('.', $signed_request, 2); 

// decode the data
$sig = base64_url_decode($encoded_sig);
$data = json_decode(base64_url_decode($payload), true);


if (strtoupper($data['algorithm']) !== 'HMAC-SHA256') {
  error_log('Unknown algorithm. Expected HMAC-SHA256');
  return null;
}

// check sig
$expected_sig = hash_hmac('sha256', $payload, $secret, $raw = true);
if ($sig !== $expected_sig) {
  error_log('Bad Signed JSON signature!');
  return null;
}

return $data;
}

function base64_url_decode($input) {
    return base64_decode(strtr($input, '-_', '+/'));
}



if ($_REQUEST) {
 echo '<p>signed_request contents:</p>';
 $response = parse_signed_request($_REQUEST['signed_request'], 
                                 FACEBOOK_SECRET);
 echo '<pre>';
  print_r($response);
 echo '</pre>';
} else {
echo '$_REQUEST is empty';
}
  • 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-24T15:52:15+00:00Added an answer on May 24, 2026 at 3:52 pm

    You first have to verify and decode the signed request before getting the JSON – there’s example PHP for this here. The place you should do this is in the script referenced in the redirect_uri – change:

    redirect_uri=http%3A%2F%2Fdevelopers.facebook.com%2Ftools%2Fecho%2F&
    

    to the appropriate URL of the script doing the verification, which should be on the same domain as your Facebook app.

    Once you’ve verified and decoded in your redirect_uri script, you’ll have an associative array containing the relevant properties (and you’ll know that it was verified registration data). From there, you could json_encode this data again and POST it to the appropriate form (which is hopefully at a location your Privacy Policy makes very clear to users your app will be sharing data with).

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

Sidebar

Related Questions

I am using a fictional example for this. Say, I have a Widget class
I need to create a desktop widget where the users wants to update their
Using this question as the base is there an alogrithm or coding example to
Since I have started using this site, I keep hearing about the Boost library.
I've been using this nifty LINQ to SQL tool for a data access layer
anyone have any experience using this? if so, is it worth while?
I'm using this code, to make a request to a given URL: private static
Should I be using this method of throwing errors: if (isset($this->dbfields[$var])) { return $this->dbfields[$var];
I am using this - otherwise excellent - vb tab control in one of
I'm using this script to display all the images in a folder, but 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.