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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:59:43+00:00 2026-05-28T17:59:43+00:00

Possible Duplicate: Upload photo to users profile from photo URL, not input file field

  • 0

Possible Duplicate:
Upload photo to users profile from photo URL, not input file field

I have the access_token. It’s with the publish_stream permission.

Alright, now I want to upload an image to my default app’s album on Facebook. The image is hosted on my S3.amazon.com. (but for example purposes, let’s take this link: https://i.stack.imgur.com/DvlWa.jpg)

How can I upload this imgur image to my app’s album? (documentation on Facebook is weird, and I don’t understand 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-28T17:59:44+00:00Added an answer on May 28, 2026 at 5:59 pm

    To upload photo to “Application Album” you have two ways (actually first may interest you more).

    Option 1: Uploading Photos to the Graph API via a URL:

    App developers who host their images on Amazon S3 or a similar service can pass the S3 URL directly to Facebook without having to download the file to their application servers only to upload it again to Facebook. This improves performance and reduces costs for developers.

    To achieve this you need to issue POST request (or GET with argument method=post) to next URL:

    https://graph.facebook.com/me/photos?
           access_token=...&url=http%3A%2F%2Fi.imgur.com%2FPtyzk.jpg
    

    http://i.imgur.com/Ptyzk.jpg in url encoded form is http%3A%2F%2Fi.imgur.com%2FPtyzk.jpg (you only need to encode url if you passing it withing URL arguments, and must not encode if you passing it with post-data).

    As stated in photo object documentation, by posting photo to https://graph.facebook.com/USER_ID/photos:

    The photo will be published to an album created for your app. We automatically create an album for your app if it does not already exist. All photos uploaded this way will then be added to this same album.

    Option 2: Uploading image data

    You just need to issue POST request to http://graph.facebook.com/me/photos (see Create Photos section of user object documentation).

    The only required parameter is source which is multipart/form-data encoded file, you can either download it to temporary file and upload it later, or stream it to the Graph API (depending on technology you use to implement this functionality)

    There is couple of samples how to upload photo (in languages other than PHP):

    • Android SDK samples (Hackbook)
    • Facebook C# SDK (on Codeplex)

    Update:
    It’s not really clear where do you want photo to be published User’s album or Application album (title and body of question are opposite on this). If you want to publish it to User’s album you need to replace me with id of album you want photo be uploaded to. Otherwise use me (for current user) or other user id (this will require usage of application access_token).

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

Sidebar

Related Questions

Possible Duplicate: HTML Compress File Upload? I have complains from client that my website
Possible Duplicate: Full path from file input using jQuery I have the following html
Possible Duplicate: How to implement file upload progress bar on web? Hello I have
Possible Duplicate: How can I upload files asynchronously with JQuery? I have a file
Possible Duplicate: How to hide text field in Html File Upload I'm setting up
Possible Duplicate: Read a file from line X to line Y? I know this
Possible Duplicate: upload a file to server without using a form? I'am able to
Possible Duplicate: File Upload to HTTP server in iphone programming How can i upload
Possible Duplicate: How do I upload a video to YouTube from within an iOS
Possible Duplicate: Python urllib2 Progress Hook I have a script which uploads a file

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.