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

  • Home
  • SEARCH
  • 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 6245829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T12:34:42+00:00 2026-05-24T12:34:42+00:00

I have an application where users can register themselves using Facebook credentials. Now consider

  • 0

I have an application where users can register themselves using Facebook credentials. Now consider for every user I get the permission for offline access.

I know that I can fetch the friends of mine using the Graph API.. For every user registered, I store the fbuid into my database.

Now I’m thinking that as I have my friends who have registered into my application and those users would have permitted my application for offline access. I thought of getting my friends in an array and just find friends of each and every friend in the array and join all of them.. Here the problem is I need to remove the Facebook users who are repeated (may be a friends in too many friend’s list) and get a final list of friends of friends..

So can I get the friends of my friend using FQL or Graph API?


I searched/read lots of topics on Stack Overflow by searching for friends of friends, but of no use.

Note: This is not the similar questions already posted on Stack Overflow. Please read fully to understand this question.

  • 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-24T12:34:42+00:00Added an answer on May 24, 2026 at 12:34 pm

    You can’t use the FQL table ‘friends’ to get friends of friends, you need a valid access token for every friend which you don’t have.

    You can do this with the graph API easily, but it will probably take a long time. My guess is 20 minutes average for 500 friends. You will need to call this:

    https://graph.facebook.com/USER_ID?fields=id
    

    First for the original user, and then for every one of his friends. The fields=id parameter will help with the amount of data you receive, though you will probably need to set the limit higher too. Add &limit=5000 to the graph query.

    To save on time you can use Batch Requests. First call the friends connection for the original user, and then generate a batch request for all his friends.
    All this will generate a lot of data, so doing it on the fly is probably not a good idea.

    There is no way for Facebook to sort all the duplicates for you, you will need to do so manually with the programming language you are using, but that should be trivial.

    Good luck.

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

Sidebar

Related Questions

I want to build a web application where users can register and have a
I have an application where users can store items. Now each type of account
I have a web application with users and their documents. Each user can have
I have an idea to build an application where users can register and keep
I am developing an application where user can register themselves by filling up the
I have an application where users can upload video files of any size, and
I have a survey application, where users can create surveys and give choices for
I have an interactive web application powered by jQuery where users can manipulate visual
I have an application where for each object the user can specify his own
Currently I have a web application where a user can use dropdown lists 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.