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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:40:31+00:00 2026-05-27T16:40:31+00:00

I did the Facebook Registration Plugin like in the official Facebook tutorial and with

  • 0

I did the Facebook Registration Plugin like in the official Facebook tutorial and with this code there it shows the total Array on screen:

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';
}

this brings me the following array:

signed_request contents:

Array
(
    [algorithm] => HMAC-SHA256
    [expires] => 1324xxxx400
    [issued_at] => 132446xxx80
    [oauth_token] => AAADRjT73VhwBALl6Gb3EVarvyGU7xxxxxxxxxxxxxxxxxxxSAUuoZAGlydkX2pH3
    [registration] => Array
        (
            [name] => Philipp Mail
            [email] => p.mail@xxxxde
            [location] => Array
                (
                    [name] => Munich, Germany
                    [id] => 1.1604xxxxxx286E+14
                )

            [birthday] => xx/xx/19x7
        )
    [registration_metadata] => Array
        (
            [fields] => [{'name':'name'}, {'name':'email'}, {'name':'location'}, {'name':'birthday'}]
        )
    [user] => Array
        (
            [country] => de
            [locale] => de_DE
        )
    [user_id] => 10xxxxxxx5426
)

Now I changed it for storing several data to mysql:

if ($_REQUEST) {
  echo '<p>signed_request contents:</p>';
  $response = parse_signed_request($_REQUEST['signed_request'], 
                                       FACEBOOK_SECRET);
$name_arr = explode(' ',$name,2);
$vname = $name_arr[0];
$zname = isset($name_arr[1])?$name_arr[1]:'';
$email = $response["registration"]["email"];
$ort = $response["registration"]["location"]["name"];
$anrede = $response["registration"]["gender"];
$geburtstag = $response["registration"]["birthday"];

// Connecting to database
mysql_connect($dbhost, $dbuser, $dbpass) or die("MySQL Error: " . mysql_error());
mysql_select_db($dbname) or die("MySQL Error: " . mysql_error());

// Inserting into users table
$result = mysql_query("INSERT INTO REKRU_mem (mem_id, vname, zname, ort, email, userpass, chili, regdatum, geburtstag, fbuid) 
VALUES 
(NULL, '$vname', '$zname', '$ort', '$email',  MD5('".$gesamtpass."'),'$chili', '0000-00-00 00:00:00', '$geburtstag', '$user_fbid')");
if($result){         

// GOT RESULTS
}
else
{
// Error in storing
}
}
else 
{
echo '$_REQUEST is empty';
}

When I look in mysql after a registration there is a new line but it saves only the actual registration time. Can anyone of U see what is my mistake?

  • 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-27T16:40:32+00:00Added an answer on May 27, 2026 at 4:40 pm

    do not use this code in a plublic Area! You can make a SQL-Injection (could also be the problem why you cannot insert).
    Try this instead of the mysql_query:

    $vname = mysql_real_escape_string($vname);
    $zname = mysql_real_escape_string($zname);
    $ort = mysql_real_escape_string($ort);
    $email = mysql_real_escape_string($email);
    $gesamtpass = mysql_real_escape_string($gesamtpass);
    $chili = mysql_real_escape_string($chili);
    $geburtstag = mysql_real_escape_string($geburtstag);
    $user_fbid = mysql_real_escape_string($user_fbid);
    $result = mysql_query("INSERT INTO REKRU_mem (mem_id, vname, zname, ort, email, userpass, chili, regdatum, geburtstag, fbuid) 
                                            VALUES (NULL, '".$vname."', '".$zname."', '".$ort."', '".$email."',  MD5('".$gesamtpass."'),'".$chili."', '0000-00-00 00:00:00', '".$geburtstag."', '".$user_fbid."')");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Anyone know how facebook did this: From what I know we cannot change the
After looking I did come accross this post on the facebook forums: link They
How did Porche add Facebook like button to their fan page? They also changed
I'm using the registration plugin of facebook to manage registration of some site. It
I keep wondering why did facebook use like submit from button and not just
I did this research (without access_token): https://graph.facebook.com/search?q= il padrino&type=page&fields=id,name Among results I see the
I'm creating a website and I'm using facebook as my authentication. I did this
I did find some suggestions for this topic but still there are some things
Does anybody know how did Facebook do that "time ago". I'm trying to do
Did you ever had a bug in your code, you could not resolve? 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.