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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:09:56+00:00 2026-05-23T08:09:56+00:00

I am creating a site where a user that logs in with their Facebook

  • 0

I am creating a site where a user that logs in with their Facebook account will see their pictures on the page . What code do i have to put in my website to see the loged in users pictures diplayed.

If someone can help me with a link to a tutorial or point me in the right direction.

I have read a lot of documentation from Facebook and on stack overflow but i cant find an answer,

  • 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-23T08:09:56+00:00Added an answer on May 23, 2026 at 8:09 am

    You can do this two ways: on the server-side (in PHP in your case) or on the client-side with the JavaScript SDK.

    Both assume you have the required access credentials. You need to sign up for an application account to get these at the Facebook Developer site

    Server-Side

    First-step is to get your application to participate in the OAuth authentication process. This is well-documented for PHP in the Facebook guide (see the Server-Side Flow section).

    Once you’ve done that, you’ll have an access token that you can call into the Graph API with. The endpoint to get the user’s photos is https://graph.facebook.com/me/photos?access_token=<token>. In this case the me, is always the user who signed in to give your application the token.

    In PHP, assuming you’ve stored the access token in $SESSION['token'] you can make a request for the photos payload with:

    $url = "https://graph.facebook.com/me/photos?access_token=" . $SESSION['token'];
    $photos = json_decode(file_get_contents($url));
    

    The $photos object will be a list of Photo entities that are described in the Facebook docs.

    Client-Side

    You’ll need to setup the JavaScript SDK on your web pages as documented here.

    Authentication on the client-side is handled by JavaScript SDK, again documented in the authentication guide.

    Using the SDK, you can make a client-side JavaScript call to the Graph API for the same photos structure:

    FB.api('/me/photos', function(response) {
        if(!response || response.error) {
            // render error
        } else {
            // render photos
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating a site that requires a user to add tags to their
I am currently creating a site(php,css,html,ajax,MySql) which will have heavy user usage of space(regarding
I am creating a site that requires admin approval before creating a user account.
I am creating a site that requires a very small postcode checker. I have
I'm creating a site that is going to have a wiki article database. Right
I'm creating a web page that user can send pm , receive it,add contact,response
When a user registers on my site, they have their own table created in
I'm creating a site which allows the user to watch videos. The videos are
I'm creating a site that allows users to submit quotes. How would I go
I am creating a site in flash that is reading in entries from a

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.