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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:08:56+00:00 2026-05-27T12:08:56+00:00

On the Facebook Graph API Post documentation the only way of posting images to

  • 0

On the Facebook Graph API Post documentation the only way of posting images to a wall (user’s or page’s) is by providing the picture field on the request.

So I could use that and upload the image from my hard-disk to a server and use that url. Like this:

curl --form picture=http://userserve-ak.last.fm/serve/174s/66037848/Foals+png.png --form access_token=AAADChj --form message=msg1 https://graph.facebook.com/242001885843121/feed

But when I do that the type field of the post gets set as “status” and not as “photo”.

I tried some different things like using the same request parameters used for uploading an image to an album with no success:

curl --form picture=@/tmp/fb_gallery.png --form access_token=AAADChj --form message=msg2 https://graph.facebook.com/242001885843121/feed

curl --form source=@/tmp/fb_gallery.png --form access_token=AAADChj --form message=msg2 https://graph.facebook.com/242001885843121/feed

I tried to set the type field to “photo” with no luck also.

  • 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-27T12:08:57+00:00Added an answer on May 27, 2026 at 12:08 pm

    Try out with this one it can upload 2 photos at a time

     curl 
     –F  'access_token=…' \
     -F  'batch=[{"method":"POST", \
                  "relative_url":"me/photos", \
                  "body":"message=My cat photo" \
                  "attached_files":"file1" \
                 },
                 {"method":"POST", \
                  "relative_url":"me/photos", \
                  "body":"message=My dog photo" \
                  "attached_files":"file2" \
                 },
                ]'
     -F  'file1=@cat.gif' \
     -F 'file2=@dog.jpg' \
    https://graph.facebook.com
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How to post to a page's wall using FaceBook Graph API for iPhone? Should
Picture posting NOT working with Facebook Graph API The message is posted but the
We're using the facebook graph API http://developers.facebook.com/docs/reference/api/post/ and adding the picture parameter. Our picture
I'm posting some info to a user's wall via Facebook Connect (from my external
Does facebook graph api provide support for searching Post messages by specific location?
Got a issue with Facebook Graph API. I want to read page notifications via
I'm trying to post a note using Facebook Graph API. I would like to
Hello I am using facebook graph api..and trying to display comments of each post..But
I am using graph API to get the feed post. https://graph.facebook.com/128172073865656/feed?limit=200 but it is
In the facebook graph api we have a attribute (picture) for attaching a image

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.