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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T22:50:53+00:00 2026-06-08T22:50:53+00:00

I would like to allow my iPhone App users to view and select from

  • 0

I would like to allow my iPhone App users to view and select from their facebook profile photos, download the photo to use as a profile pic. I am currently using the Facebook SSO SDK and successfully logging in and accessing Graph information. Have tried to access photo information (after successful SSO login) using

[facebook requestWithGraphPath:@"me/albums"];

but I just get an empty data object in return. I’ve tried using the Facebook API explorer, which is very helpful, and it does give me data for /picture and /photos and /albums. For some reason I don’t get the same data using requestWithGraphPath with me/albums, me/picture or me/photos. Just plain “me” works fine but doesn’t give me any picture info. Can anybody tell me what I’m doing wrong?

Note: this is the API reference: Facebook Graph API

I did get picture profile to work like this:

[facebook requestWithGraphPath:@"me?fields=picture"];

Update: really I want all of the Profile Photos which is a photo album so I need to know how to access albums through iOS. The profile picture I have successfully obtained now.

I have added permissions “user_photos” and “friends_photos” for photo albums according to API:

    NSArray *permissions = [[NSArray alloc] initWithObjects:
                            @"user_likes",
                            @"user_birthday",
                            @"email",
                            @"publish_stream",
                            @"publish_actions",
                            @"user_photos",
                            @"friends_photos",
                            nil];
    [facebook authorize:permissions];

When I say I’m getting empty data, this is the JSON result (in request:didLoad:) that gets returned:

 {
    data =     (
    );
}

From my log file output:

- (void) request:(FBRequest *)request didLoad:(id)result{
    NSLog(@"%@",result);

}

Final Note: What finally worked was to use another device, which updated my permissions and then everything started working! My best guess is that the emulator and my iPhone were not updating my facebook permissions so I was being denied access to photos and getting an empty data array.

This SO question was a big help also: How to get photos of a facebook album in iPhone 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-08T22:50:55+00:00Added an answer on June 8, 2026 at 10:50 pm

    For the sake of future viewers, I’m putting the answer to my own question since I haven’t received a complete answer from anyone else.

    First, you must have the right permissions, either "user_photos" or "friends_photos". Then you have to make sure that your test device updates your permissions — I think restarting the device is what ultimately did it for me.

    Once you’ve done that, you can get the JSON list of albums, after logging in via SSO, using this call:

    [facebook requestWithGraphPath:@"me/albums" andDelegate:self];
    

    This will give JSON array (under key data) with all kinds of information about each album, including the ID. To get a list of photos for a particular album ID (say its ‘123456789’) do the following:

    NSString * albumId = @"123456789";
    NSString * path = [NSString stringWithFormat:@"%@/photos", albumId];
    [facebook requestWithGraphPath:path andDelegate:self];
    

    Your response will of course come via the FBRequestDelegate method request:didLoad where you can process the JSON data.

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

Sidebar

Related Questions

I'd like to allow users to send out Tweets from my iPhone app. That's
I would like to allow users to call my ruby on rails app as
I have an iphone app which post photos into albums of facebook users, and
I am writing an opengl based iphone app and would like to allow a
I have a client who would like an iphone app that allows users to
I'm writing an app that will allow iPhone users to login to their accounts.
I've a user profile and would like allow the user update everything about himself(username,
I have a ASP.NET 3.5 web application and I would like to allow users
I would like to allow my users to see other users data. I am
On our website we would like to allow users to share content that they

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.