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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:13:08+00:00 2026-05-23T22:13:08+00:00

I have a form with several input fields for a User to add their

  • 0

I have a form with several input fields for a User to add their Facebook friends. I want those input fields to auto-complete with names from their Facebook friends list, and then when the form is submitted, the value sent is the id for those friends.

Here is an snippet of the Facebook friends feed for a User:

   [ {
         "name": "Joe Smith",
         "id": "6500000"
      },
      {
         "name": "Andrew Smith",
         "id": "82000"
      },
      {
         "name": "Dora Smith",
         "id": "97000000"
      },
      {
         "name": "Jacki Smith",
         "id": "107000"
      } ]

Here’s what the relevant form HTML is so far.

<label>Name</label>
<input type="text" name="name-1" id="name-1" />
<input type="hidden" id="fbid-1" /><br/>
<label>Name</label>
<input type="text" name="name-2" id="name-2" />
<input type="hidden" id="fbid-2" /><br/>
<label>Name</label>
<input type="text" name="name-3" id="name-3" />
<input type="hidden" id="fbid-3" /><br/>
<label>Name</label>
<input type="text" name="name-4" id="name-4" />
<input type="hidden" id="fbid-4" /><br/>

I’m using jQuery to handle the POST of this form. I was looking at jQuery’s autocomplete plugin, but I’m uncertain if that will allow me to set in the name AND id for a Facebook friend.

  • 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-23T22:13:10+00:00Added an answer on May 23, 2026 at 10:13 pm

    take a look at this code example, its working fine, you will need to do some small changes to the code if you want to have more than one inputs.

    http://blogs.microsoft.co.il/blogs/alon_nativ/archive/2011/05/30/search-facebook-friends-with-jquery-autocomplete.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On my website I have several input fields in a form. I want the
I have a IceFaces-form and several input fields. Let's say I have this: <ice:selectOneMenu
I have a form with several input fields, i would like to go through
I have a several input fields in a form each having a unique name.
I have... a dynamic populated select box several input boxes a submit button form
I have one form with several text fields and one button. When i enter
I have a form with several text boxes on it. I only want to
I have an InfoPath form with several fields on, the problem is that one
Imagine you have a form where you switch visibility of several fields. And if
Total beginner question about jQuery: I have a Form that contains several TextBoxes (input

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.