i´m developing a Facebook Fanpage using PHP-SDK 3.0 and integrated a Facebook Registration Plugin. So far everthing works fine. I can store everthing.
The signed_request answered:
signed_request contents: Array ( [algorithm] => HMAC-SHA256 [expires] => 1324xxxx400 [issued_at] => 132446xxx80 [oauth_token] => AAADRjT73VhwBALl6Gb3EVarvyGU7xxxxxxxxxxxxxxxxxxxSAUuoZAGlydkX2pH3 [registration] => Array () [user_id] => 10xxxxxxx5426 )
For storing the data I use the following code:
$email = $response["registration"]["email"]; $user_fbid = $response["registration"]["user_id"]; $email = mysql_real_escape_string($email); $user_fbid = mysql_real_escape_string($user_fbid); // Inserting into users table $result = mysql_query("INSERT INTO member (email, userid) VALUES ($email, $user_fbid)
Here my question:
At first day the $result stored something like 214xxxx647 and next day it stores 217. But there is nothing similar like 10xxxxxxx5426