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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:48:45+00:00 2026-06-03T01:48:45+00:00

I can’t seem to properly retrieve a user’s profile picture using the current iOS

  • 0

I can’t seem to properly retrieve a user’s profile picture using the current iOS graph method.

My call: self.pictureRequest = [facebook requestWithGraphPath:@"me/picture" andDelegate:self];

What I do with the result:

-(void)request:(FBRequest *)request didLoad:(id)result{
    if(request == self.pictureRequest){
        UIImageView *image = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 500, 500)];
        image.image = [UIImage imageWithData:result];
        [self.view addSubview:image];
        NSLog("result is %@", result);
    }

So I’m just trying to get the profile picture right now. Result shows up as null in the console. I guess this means I’m not actually getting a result? (I tried if(result) NSLog(@"got a result") but it doesn’t return, so I’m guessing a result isn’t being sent back by fb?)

Any ideas? I also looked up a similar problem here but not sure what they do differently:
Problem getting Facebook pictures via iOS

  • 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-03T01:48:47+00:00Added an answer on June 3, 2026 at 1:48 am

    well I can retrieve the user pic and other info like this .. try it

    - (void)fetchUserDetails {
        NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                       @"SELECT uid, name, pic, email FROM user WHERE uid=me()", @"query",nil];
    
        [fb requestWithMethodName:@"fql.query"
                                         andParams:params
                                     andHttpMethod:@"POST"
                                       andDelegate:self];
    
    
    }//Call this function after the facebook didlogin
    

    and in request didLoad:

    - (void)request:(FBRequest *)request didLoad:(id)result 
    {
    
        if([request.url rangeOfString:@"fql.query"].location !=NSNotFound)
        {
            if ([result isKindOfClass:[NSArray class]] && [result count]>0) {
                result = [result objectAtIndex:0];
            }
            if ([result objectForKey:@"name"]) {
    
                self.fbUserName = [result objectForKey:@"name"];
    
               // Get the profile image
                UIImage *fbimage = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:[result objectForKey:@"pic"]]]];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to using the Perl treebuilder module for HTML parsing and can't figure
Can PHP PDO extension bind nested objects automatically ? I mean using foreign key
Can we close all known/unknown connections to database with the code? I'm using Access
Can't seem to get the Back Button to appear in a UINavigationController flow. I
Can I convert a pdf to pcl file with ghostscript? I'm using Ghostscript 9.01
I am using Paperclip to handle profile photo uploads in my app. They upload
Can I kill a .NET 4.0 Task object with some method like we could
Can someone explain how users accounts works on webpage? www.website.com/profile? uid=15636373282 or www.website.com/profile/ 15636373282
can anyone help me in trying to check whether JavaScript is enabled in client
Can 2 or more equations defining a function in Haskell share the same where

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.