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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:19:44+00:00 2026-05-25T18:19:44+00:00

The facebook SDK gives this example for passing the registration form fields: var fields

  • 0

The facebook SDK gives this example for passing the registration form fields:

var fields = new object[]
     {
      new {name = "name"},
      new {name = "email"},
      new {name = "location"},
      new {name = "gender"},
      new {name = "birthday"},
      new {name = "password", view = "not_prefilled"},
      new {name = "like", description = "Do you like this plugin?",
                                         type = "checkbox",
                                         @default = "checked"},
      new {name = "phone", description = "Phone Number", type = "text"},
      new {name = "captcha"}
      };

I want to add a custom typeahead field to that. Like:

new {name = "live",       description = "Best Place to Live", type = "typeahead", categories = ("city, country, state_province")}

But when I run that I get errors on the categories= syntax. Saying the categories is an invalid array. I’ve tried several different syntaxes and none seem to work. What’s the proper syntax to add the categories?

  • 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-25T18:19:45+00:00Added an answer on May 25, 2026 at 6:19 pm

    for arrays use []

    categories = new[] { "city", "country", "state_province" }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I followed the example here -- https://github.com/facebook/php-sdk : require 'php-sdk/src/facebook.php'; $facebook = new Facebook(array(
So i followed this tutorial to set up the android facebook sdk in my
In Facebook iOS SDK, I can ask for queries like this: [_facebook requestWithGraphPath:@me/feed andDelegate:self];
please any example then give me...dont give me reference site name or any facebook
I'm looking for a solution similar to the iPhone Facebook Connect ( https://github.com/facebook/facebook-ios-sdk )
Facebook Connect seems like the cool new way to leverage a user's Facebook account
Facebook gives access to users' emails via the extended permission. There's also a way
In Facebook's Compose Message, each name that appears in the TO field uses a
I'm using the Facebook Connect for iPhone SDK at http://github.com/facebook/facebook-iphone-sdk/ and am trying to
I've been trying to implement the Facebook SDK into my application in order to

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.