This is going to be the trickiest point. There's no way in JFBConnect's flow (or Joomla for that matter) to let a user select a profile type during registration. I'm not sure how you're planning on doing that.I want the user to select whether they are wishing to signup as a Customer or a Business
$fields = array(0 => 'first_name', 1 => 'last_name', 2 => 'status', 3 => 'email', 4 => 'name', 5=>'hometown',6=>'current_location');
$jfbcLibrary = JFBConnectFacebookLibrary::getInstance();
$fbUserId = $jfbcLibrary->getFbUserId();
$profile = $jfbcLibrary->getUserProfile($fbUserId, $fields);Do you mean that to automatically request from facebook, I will have to create a JFBCProfile plugin or will including the calls above do this anyway?Using a JFBCProfile plugin has the benefits of:
* Dynamically setting the permissions required at login - If you need current_location, the login button will request permission for that information from the user. That's very easy to set in our JFBConnect configuration area as well though
* Import avatar - doesn't sound like you need that.
JFBCProfile plugins are much more complex though, so I think might be more than you're looking for.
"current_location": {
"city": "Austin",
"state": "Texas",
"country": "United States",
"zip": "",
"id": 106224666074625,
"name": "Austin, Texas"Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.
