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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:46:03+00:00 2026-05-27T05:46:03+00:00

I am developing an app that will use the profile picture of user. I

  • 0

I am developing an app that will use the profile picture of user. I am trying to save the profile picture of the user on my server for manipulation.

When I use https://graph.facebook.com/[uid]/picture?type=large it will not work because there is some sort of redirection that facebook does before serving the pic.

Can anyone help me with this issue? I am using PHP.

  • 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-27T05:46:04+00:00Added an answer on May 27, 2026 at 5:46 am

    If I understand your issue correctly, you are probably using file_get_contents to fetch the image but you are just getting a text response back, because file_get_contents does not automatically follow the redirect the text response contains?

    A quick-and-dirty solution is to parse the text response yourself to find the url of the actual image:

    @file_get_contents('https://graph.facebook.com/'.$userid.'/picture?type=large');
    foreach ($http_response_header as $rh) if (substr($rh, 0, 10)=='Location: ') $imgurl=substr($rh, 10);
    

    Then you should have the actual image url that you can process as needed.

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

Sidebar

Related Questions

I am developing an app that will request the profile picture URL of some
I am looking at developing an app that will make use of Facebook and
I'm currently developing an app that will allow the user to choose an app
If I am developing for an environment that will make use of SQL Server
I'm developing an app that will allow the user user to view the contents
I'm developing a small social networking app that makes use of something like profile
I'm developing a iPhone application that will use a Google App Engine backend and
I'm developing an app in android that will act as a server, this is,
I am developing an App that will interface with a web server (PHP with
I am developing a web app that will have two parts running on two

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.