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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:39:10+00:00 2026-06-18T01:39:10+00:00

I am using Facebook graph to load a user’s image to an iOS app.

  • 0

I am using Facebook graph to load a user’s image to an iOS app.
The image is then placed inside a UIView in order to present it.

I would like to present that same picture if internet connection is not available, and if internet is available to fetch the image from Facebook.

How do I save the image:

  • to NSUserDefaults?
  • to Core Data?
  • to App folder?

and how do I retrieve it later?

  • 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-18T01:39:11+00:00Added an answer on June 18, 2026 at 1:39 am

    You’re talking about image caching – keep in mind that you can’t just infinitely store images as they are downloaded (there is a chance that your application will take up way too much disk space eventually). You need to define some criteria for purging all of this data – either data that is unused or maybe outdated – that’s up to you. There are a lot of ways to tackle the caching issue, just Google it and I’m sure you’ll find some useful stuff.

    As for storing images – what you want to do is get the UIImage’s data (by using functions like UIImageJpegRepresentation or UIImagePNGRepresentation). These functions will return an NSData instance that can either be stored in NSUserDefaults (not the place for image caching) or on a file in your Cache directory (much better and won’t give Apple a good reason to reject your app for bad storage practices).

    Also, don’t accidentally try to call these functions on an FBProfilePictureView instance – that’s just a class Facebook created for displaying profile pictures (it is in fact a UIView that has a UIImageView subview of a profile image. Within this UIImageView you can get the UIImage itself). How can I convert FBProfilePictureView to an UIImage?

    Good luck

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

Sidebar

Related Questions

I'm using the Facebook Graph Api to load all friends of the current user
I'm using Facebook Connect along with the Facebook Graph API to fetch user's email
I'm developing an HTML app that integrates Facebook Graph API using Javascript SDK. Facebook
Is it possible to send a message tagging a facebook user using Facebook Graph
Using Facebook Graph API and my app credentials I am able to retrieve a
I have been using this approach to get the facebook big profile image http://graph.facebook.com/<FBUID>/picture?type=large
I want to send app request to user of app Facebook. https://graph.facebook.com/myid_facebook/apprequests?message= test &data=
Using Facebook Graph API (PHP), How to find how long a user is using
I am getting the user info through Facebook Graph API using the following codes:
I am using Facebook graph API to retrieve user wall information. In that, 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.