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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:32:31+00:00 2026-05-29T09:32:31+00:00

I will prompt users to filter their friend list in 3 ways: select only

  • 0

I will prompt users to filter their friend list in 3 ways:

  1. select only male friends
  2. select only female friends
  3. select all friends

for example, filter 1 will be:

SELECT name, sex, pic_big, uid FROM user WHERE uid in (SELECT uid2 FROM friend WHERE uid1 = me()) AND sex = "male"

now I need to display this information to the user! How can I show a grid or list of the resulting (filtered) friends?

  • 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-29T09:32:32+00:00Added an answer on May 29, 2026 at 9:32 am

    Ok… First of all you’ll need :

    • A comfy chair
    • A Computer (complete with all peripherals : keyboard, mouse, screen, etc)
    • An Internet connection
    • Determination
    • A Bookmark to this site 😉

    Now, to your question.
    The Graph API Explorer is a great way to get started and poke around at the API to see how you can get results. You can even run FQL queries with the Graph API.

    One thing to note here is that because you are dealing with the users gender and that is not indexed in the API (that means that it can not be a search criteria), you’ll have to first retrieve the users friends and only after that make calls to retrieve each of the users gender.


    With regard to displaying the information. One could use a simple method of iterating through an array of data (possibly populated by a previous call to the API) and printing out the data wrapped in html tags.

    Here is a simple example or iterating through an array and printing the contents of that array in html.

    // $facebook_friends is populated with user information
    
    foreach ($facebook_friends as $friend) {
        echo '<table border="0">';
        echo   '<tr><td>'.$friend['id'].'</td></tr>';
        echo   '<tr><td>'.$friend['name'].'</td></tr>';
        echo   '<tr><td>'.$friend['picture'].'</td></tr>';
        echo '</table>';
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I will have an app where I will prompt users for a URL (with
By default, copying from the command prompt will prompt you to overwrite files that
In eclipse, the m2eclipse plugin will prompt me for my credentials when I'm building
I'm creating a site using drupal where I'd like to prompt my new users
I'm working on a project that will be using a lot of select menus
Users will be remotely accessing ***nix based machines via SSH and I need to
I have a Silverlight 3 app that that will let users download PDF files
I need a java method that will read command prompt output and store it
I will execute this command in Command Prompt php C:\xampp\htdocs\dl.php These are the properties
We have a 3rd party login dialog which will skip the login prompt if

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.