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

  • Home
  • SEARCH
  • 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 7552121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:40:48+00:00 2026-05-30T10:40:48+00:00

I create a photo viewer for fb photos in a FB canvas application. Therefore

  • 0

I create a photo viewer for fb photos in a FB canvas application. Therefore I care about photo size. It seems all uploaded photos in FB seem to be available in different sizes. I see in the graph API (http://developers.facebook.com/docs/reference/api/photo/) the term in the source property: “maximum width or height of 720px” but as well a width and height property. As well I have several photo sizes in fql photo (http://developers.facebook.com/docs/reference/fql/photo/).

  1. Are the photo sizes available in one category (src_small, normal, src_big) always the same or can they differ? I suppose they can differ.
  2. What are the formats FB supports? I suppose it is small normal and big
  3. How to conceptually deal with different sizes in a viewer? I suppose you need to fix the viewer area, eg. 3 (height) : 4(width). Now size an image inside the viewer by maximizing the height or width.

Am I heading to the right direction?

  • 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-30T10:40:49+00:00Added an answer on May 30, 2026 at 10:40 am

    Not sure if you noticed, but there’s also an “images” field in the Graph API which holds “The 4 different stored representations of the photo” similiar to the FQL.

    "images": [
      {
         "width": 720,
         "height": 483,
         "source": "http://a7.sphotos.ak.fbcdn.net/hphotos-ak-ash2/168119_10150146071831729_20531316728_7844072_5116892_n.jpg"
      },
      {
         "width": 180,
         "height": 120,
         "source": "http://photos-g.ak.fbcdn.net/hphotos-ak-ash2/168119_10150146071831729_20531316728_7844072_5116892_a.jpg"
      },
      {
         "width": 130,
         "height": 87,
         "source": "http://photos-g.ak.fbcdn.net/hphotos-ak-ash2/168119_10150146071831729_20531316728_7844072_5116892_s.jpg"
      },
      {
         "width": 75,
         "height": 50,
         "source": "http://photos-g.ak.fbcdn.net/hphotos-ak-ash2/168119_10150146071831729_20531316728_7844072_5116892_t.jpg"
      }
    ],
    
    • Note that the original image does not have a width of 720px everytime. It’s not scaled up if you upload a smaller image.

    From the first view it seems that the images stored have a fixed width per representation.
    180px for the large, 130px for the medium and 75px for the small size. Also there’s a original image which is has a maximum width of 720px.

    FB only supports JPEG format.

    Conceptually you should have a fixed width window for the image size you want to show (let’s take that you show the biggest [large] image to the user using the one with width 180px. Height is then <= 180px. So you can make a 180×180 box and fill the background in black if the image height’s is smaller.

    OR do it like facebook does. Take the original image and fit is as big as you could into the window. They use a pop-up so they could use up maximum amount of space for the image.
    Using valid CSS it’ll be easy to play with images different sizes.

    So yes, you’re heading to the right direction, just analyze Facebook API’s and take the most out of them.

    If you have any trouble writing the CSS needed or putting together the FQL query, feel free to ask another question 🙂

    Little reading about CSS image resize

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

Sidebar

Related Questions

i'm trying to create a photo viewer like the Apple Photos app in iOS.
How to create a photo viewer in wp7. I have some 10 to 25
I would like to create a photo/video capture application. I have created a CaptureView
I'm about to create a user based website and will have to store photo,
In my application a user can create his/her photo album. My question is how
So I am trying to create a photo Gallery by getting all the images
I am trying to create a photo viewer in Ruby on Rails using jquery-lightbox
I want to create a photo album with rows of images. Currently all my
I'd like to create a photo gallery with large (fit-to-window) photos, description overlays and
i don't know anything about HTML coding and i want create a photo album

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.