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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T04:48:33+00:00 2026-05-16T04:48:33+00:00

I have a couple of problems using facebook graph api. 1). When i try

  • 0

I have a couple of problems using facebook graph api.

1).
When i try to upload a photo i get the following error “(#324) Requires upload file”.

  $attachement = array(
                            'access_token'=> (...)',
                            'name' => 'uploaded foto',
                            'source' => 'C:\Documents and Settings\Username\Desktop\1.jpg'
                    );

        $fb_foto = $fb->api('me/photos','POST',$attachement);

I am sure that source is correct. I have tried with a photo from the internet and not from mu local PC also.

2). How can i delete an object from facebook?. (a wall message for example).
I have tried this:
$fb->api(‘/post_id’,’POST’,array(‘method’=> ‘delete’));

But i get “unsupported POST request” error.

Any help would be appreciated.

EDIT: Here is the complete solution i found for upload photos to Facebook. You need to have the version 2.1.1 or above of PHP SDK

 $fb = new Facebook(array(
                        'appId'  => ...,
                        'secret' => ...,
                        'cookie' => true,
        ));

$fb->setFileUploadSupport(true);
      $attachement = array(
                            'access_token'=> '...',
                            'name' => 'uploaded foto',
                            'source' => '@absolute_path_to_the_file'
                    );



      $fb_foto = $fb->api('me/photos','POST',$attachement);
  • 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-16T04:48:34+00:00Added an answer on May 16, 2026 at 4:48 am

    Concerning your 2nd problem, I remember reading somewhere about a DELETE request, instead of POST. See:
    http://developers.facebook.com/docs/api#deleting

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

Sidebar

Related Questions

I have a couple other pages on the website that have no problems with
We have a couple of sites which have some memory problems and fairly often
I have a couple questions on playing videos in android. Currently I am using
Recently a couple of WCF services have been introduced to our company's API. There
I have a couple of basic Rails problems that I'm having trouble finding relevant
I'm faced with a couple of problems in VB.net: I have a series of
I have a couple of problems when doing blending in WebGL. One of them
I've just started using LINQ and I'm having a couple of problems understanding how
I have a couple of problems with my container DIV. For one it is
I'm learning functional programming, and have tried to solve a couple problems in a

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.