Attila Szeremi
Attila Szeremi

Reputation: 5478

Uploading a picture to a page event: #1 "An unknown error occurred"

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:

What I have tried previously (mostly seperately)

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?

Upvotes: 0

Views: 1803

Answers (1)

divide by zero
divide by zero

Reputation: 2370

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.

Upvotes: 2

Related Questions