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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:02:06+00:00 2026-06-11T06:02:06+00:00

How to get source value if its height and width is >= something MY

  • 0

How to get source value if its height and width is >= something

MY WORK: i using facebook graph api to get these values.. its output as json object.. that’s not the problem i need to get only one link means source value that its width has to given value.

or if its possible to give condition in facebook graph that will be easier

My code:

$url = "https://graph.facebook.com/{$this->post[id]}?fields=images&access_token={$this->user->token}";
$url = file_get_contents($url);
$link = (array)json_decode($url);

suppose think i want to get source value and its height should be > 420…

Array
(
    [images] => Array
        (
            [0] => stdClass Object
                (
                    [height] => 1152
                    [width] => 2048
                    [source] => https://sphotos-b.xx.fbcdn.net/hphotos-snc6/256375_463526207001195_392636722_o.jpg
                )

            [1] => stdClass Object
                (
                    [height] => 540
                    [width] => 960
                    [source] => https://sphotos-b.xx.fbcdn.net/hphotos-ash4/427440_463526207001195_392636722_n.jpg
                )

            [2] => stdClass Object
                (
                    [height] => 405
                    [width] => 720
                    [source] => https://sphotos-b.xx.fbcdn.net/hphotos-ash4/s720x720/427440_463526207001195_392636722_n.jpg
                )

            [3] => stdClass Object
                (
                    [height] => 337
                    [width] => 600
                    [source] => https://sphotos-b.xx.fbcdn.net/hphotos-ash4/s600x600/427440_463526207001195_392636722_n.jpg
                )

            [4] => stdClass Object
                (
                    [height] => 270
                    [width] => 480
                    [source] => https://sphotos-b.xx.fbcdn.net/hphotos-ash4/s480x480/427440_463526207001195_392636722_n.jpg
                )

            [5] => stdClass Object
                (
                    [height] => 180
                    [width] => 320
                    [source] => https://sphotos-b.xx.fbcdn.net/hphotos-ash4/s320x320/427440_463526207001195_392636722_n.jpg
                )

            [6] => stdClass Object
                (
                    [height] => 101
                    [width] => 180
                    [source] => https://fbcdn-photos-a.akamaihd.net/hphotos-ak-ash4/427440_463526207001195_392636722_a.jpg
                )

            [7] => stdClass Object
                (
                    [height] => 73
                    [width] => 130
                    [source] => https://fbcdn-photos-a.akamaihd.net/hphotos-ak-ash4/427440_463526207001195_392636722_s.jpg
                )

            [8] => stdClass Object
                (
                    [height] => 73
                    [width] => 130
                    [source] => https://fbcdn-photos-a.akamaihd.net/hphotos-ak-ash4/s75x225/427440_463526207001195_392636722_s.jpg
                )

        )

    [id] => 463526207001195
    [created_time] => 2012-08-19T16:22:21+0000
)
  • 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-11T06:02:08+00:00Added an answer on June 11, 2026 at 6:02 am

    You can specify the width and height parameters in the graph api call to retrieve the picture in alternate sizes.
    eg – https://graph.facebook.com/4/picture?width=300&height=420
    Please refer to this blog post for more details –
    https://developers.facebook.com/blog/post/2012/08/22/platform-updates–operation-developer-love/

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

Sidebar

Related Questions

I'm using JSON to get some values into a variable from an external source.
How can I get source code off the internet using SVN? I'm trying to
I am using following code to get source for image in wpf (image is
I need to get the source code of the particular URL using a java
I can't seem to get my ImageView to display its source image in its
i have been trying to get the source of a page in php using
i have combobox in datagrid (sourse in mysql (web)) how i can get value
How can I get source code from WebBrowser component? I want to get source
I got a package with: $ apt-get source <pkg-name> and now I am trying
I want to get HTML source of select text in div and alert that.

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.