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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:19:17+00:00 2026-06-10T17:19:17+00:00

I have successfully managed to facilitate facebook users to authenticate to my application using

  • 0

I have successfully managed to facilitate facebook users to authenticate to my application using their facebook login by using facebook_sdk.

Now I want to get friends of the person who authenticated my application.

How can I achieve this with facebook_sdk?

  • 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-06-10T17:19:19+00:00Added an answer on June 10, 2026 at 5:19 pm

    Here is jsfiddle showing how you can get list of friends from js:
    http://jsfiddle.net/R3KF4/2/

    Just place your app id and secret at the bottom, and id of fb profile which has authorized that app.

    I suggest you to turn on network tab / capture in developer tools in your browser, so you can see what goes over the wire.

    It is based on my simple feed getter:
    https://github.com/goranobradovic/CommonCodeSnippets/blob/master/JS/fbUtils.js

    Of course, to properly secure your application, you need to perform first step (get oauth token) from server side code (in php). To be clear, you need to place your app id and secret into this url: "https://graph.facebook.com/oauth/access_token?grant_type=client_credentials&client_id={appId}&client_secret={secret}" and then perform get request from php to acquire token, and then place it into js as variable, so users opening your page do not see your app id and secret. From js you can then use 'https://graph.facebook.com/'+ userId + '/friends&' + token to load json with friends.

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

Sidebar

Related Questions

I'm building WP7 application using DropNet. I have successfully managed to log in and
Using Socket.IO's WebSocket I have successfully managed a chat application from my home computer
I have successfully managed to get System.Speech.Synthesis to read English text in arbitrary voices
I have successfully implemented interop beftween Win32 application and managed .Net dll as described
I have managed to successfully deploy my Symfony2 application to a production web server,
I am using JQuery tabs in my page, and have successfully managed to place
I successfully managed to get trans and blocktrans to translate text. However... I have
I have successfully sent emails in my application using OAuth 1.0a (using Signpost) by
I have been playing with Google C2DM, and managed to successfully get the push
Have anyone successfully managed to setup a combined Java/C++ project for Eclipse? What I

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.