Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $user = file_get_contents('https://graph.facebook.com/sean.wichers');
- $json = json_decode($user, true);
- {
- $uinfo = (array) $json;
- 'id' => $uinfo->id,
- 'name' => $json->name,
- 'first_name' => $json->first_name,
- 'last_name' => $json->last_name,
- 'link' => $json->link,
- 'username' => $json->username,
- 'gender' => $json->gender,
- 'locale' => $json->locale
- );
- }
- include 'user1.php';
- ?>
- //*____________________----------____________________//
- // {
- // echo $json['id'];
- // }
- //$con = mysql_connect("localhost","swichers_tagn","wichers90");
- //if (!$con)
- // {
- // die('Could not connect: ' . mysql_error());
- // }
- //mysql_select_db("swichers_jo151", $con);
- //mysql_query("INSERT INTO jos_users (id, name, username, email, password, usertype, block, sendEmail, registerDate, lastvisitDate, activation, params, gid)
- //VALUES ($json->id, $json->name, json->username, ' ', ' ', 'Registered', '0', 1, '', '18')");
- //mysql_close($con);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement