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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:54:02+00:00 2026-06-10T18:54:02+00:00

With the same access token as the one I used to create a page

  • 0

With the same access token as the one I used to create a page event, I tried to upload a photo to it with the PHP SDK 3.1.1

The checklist:

  • I am passing an access token
  • The access token I’m passing does have create_event, publish_stream, photo_upload
  • I am making a call to /EVENT_ID/picture
  • I am using the method POST
  • The params do contain the needed access token and source=@ABSOLUTE_PATH_TO_IMAGE
  • File upload support is turned on for the PHP SDK object

What I have tried previously (mostly seperately)

  • Trying to upload a picture within the same params of the request for creating the event, with the source param, using @ before the full image file path
  • The same, but instead of using the param “source”, I tried $params[basename($file)] = '@' . $file;
  • Trying to add a picture to /EVENT_ID/picture, but with url = URL_TO_FILE instead of source = @ABSOLUTE_PATH_TO_FILE (results in the exact same error, “An unknown error has occured”
  • Adding a message param with text to the params where I upload the picture separately from creating the event
  • Adding venue=null to the params for where I create the event
  • I have tried using the latest Facebook SDK PHP files

Here is a PHP var_dump() of the two requests:

array(6) {
  ["name"]=>
  string(11) "Superman IV"
  ["start_time"]=>
  string(24) "2012-09-23T16:00:00+0200"
  ["end_time"]=>
  string(24) "2012-09-23T17:30:00+0200"
  ["description"]=>
  string(237) "Lex Luther wykrada z muzeum włosy Supermana. Dzięki nim udaje mu się stworzyć super robota, Nuclear Mana, który potrafi czerpać energię ze słońca. Dzięki temu Nuclear Man staje się niezniszczalny i staje do walki z Supermanem."
  ["access_token"]=>
  string(118) "<censored>"
  ["@event_cover.jpg"]=>
  string(61) "@/var/www/rr048_attila/templates/template/img/event_cover.jpg"
}
array(2) {
  ["access_token"]=>
  string(118) "<censored>"
  ["source"]=>
  string(61) "@/var/www/rr048_attila/templates/template/img/event_cover.jpg"
}

Note that for the @event_cover.jpg param, I tried doing the same without the @ in the key, and also without that param at all.

Here is a var_dump() of the error I get for the second request:

array(2) {
  ["error_code"]=>
  int(1)
  ["error_msg"]=>
  string(25) "An unknown error occurred"
}

Does anyone have any idea what is causing this problem, or what I forgot to do?

  • 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-10T18:54:04+00:00Added an answer on June 10, 2026 at 6:54 pm

    At the moment, this can be affected by Facebook bug. I am tracking it here
    Also I’ve created similar question, from my point of view, but no one answered it.
    (question can be found here)
    The issue can be connected to Timezone Migration, because before that my events and picture upload to them worked properly and no changes to script were made.

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

Sidebar

Related Questions

The question is the same as title. I'm using the latest php-sdk (v3.1.1) to
I have been to the Authentication page and successfully generated an access token, but
Let's say I have 3 or more peers connected to the same WiFi Access
I would like to set some values in context.xml file and access the same
I access my Unix server via ssh and I always do the same commands.
I am trying to access a webpage on a same domain / same asp.net
When i am trying to access the services in the same solution the webservice
I have two processes which access to the same physical memory(GPIO data addr). So
Is there any rules to access shared memory at the same time in multicores?
I have two servlets that access two corresponding Axis2 web services on the same

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.