tags:

views:

24

answers:

0

Hi, I have just started to play around with facebook api etc and currently looking through examples. I have a button working where the user can login to facebook , and then there first/last name is put into the value of a input box.

I want this to be used so either a user can login to facebook and have the registartion form filled in for them, or do it manually.

How can I get the user to logout of facebook once the fields are completed, also is the below code the correct way of having the form filled in?

<input type="text" value="<?php echo $me['first_name']; ?> />

Once the form is complete I plan on storing the data on my website, so the facebook connect will be a one off just for user signup.

Any help appreciated thanks :)

Edit: using php SDK