SammyK / LaravelFacebookSdk

Fully unit tested Facebook SDK v5 integration for Laravel & Lumen
MIT License
693 stars 201 forks source link

send batch request issue #181

Open pouu69 opened 7 years ago

pouu69 commented 7 years ago
FacebookResponseException {#1171
  #response: FacebookResponse {#1172
    #httpStatusCode: 500
    #headers: array:14 [
      "WWW-Authenticate" => "OAuth "Facebook Platform" "unknown_error" "An unknown error has occurred.""
      "Access-Control-Allow-Origin" => "*"
      "Pragma" => "no-cache"
      "Cache-Control" => "no-store"
      "x-fb-rev" => "3111804"
      "Content-Type" => "application/json; charset=UTF-8"
      "x-fb-trace-id" => "FIBwuu+OeOH"
      "facebook-api-version" => "v2.9"
      "Expires" => "Sat, 01 Jan 2000 00:00:00 GMT"
      "Vary" => "Accept-Encoding"
      "X-FB-Debug" => "HkHfoywdTN/NXdhq89sqB0GTEPbkJOVLNeCi6QzmOyDnjXP8SGWoymlleZgepwrti5bKt4rfcvm+pj4+UpL5MA=="
      "Date" => "Fri, 23 Jun 2017 08:01:52 GMT"
      "Connection" => "keep-alive"
      "Content-Length" => "114"
    ]
    #body: "{"error":{"message":"An unknown error has occurred.","type":"OAuthException","code":1,"fbtrace_id":"FIBwuu+OeOH"}}"
    #decodedBody: array:1 [
      "error" => array:4 [
        "message" => "An unknown error has occurred."
        "type" => "OAuthException"
        "code" => 1
        "fbtrace_id" => "FIBwuu+OeOH"
      ]
    ]
    #request: FacebookBatchRequest {#1148
      #requests: array:1 [
        0 => array:4 [
          "name" => 0
          "request" => FacebookRequest {#1174
            #app: FacebookApp {#770
              #id: "blahblah"
              #secret: "blahblah"
            }
            #accessToken: "blahblah"
            #method: "POST"
            #endpoint: "/me/photos"
            #headers: []
            #params: array:2 [
              "url" => "https://s3.ap-northeast-2.amazonaws.com/tyle.io.seoul/cards.exports/xU/xUOStorw3ei/tyle-xUO-1.png"
              "published" => "false"
            ]
            #files: []
            #eTag: null
            #graphVersion: "v2.9"
          }
          "options" => []
          "attached_files" => null
        ]
      ]
      #attachedFiles: null
      #app: FacebookApp {#770}
      #accessToken: "blahblah"
      #method: "POST"
      #endpoint: ""
      #headers: array:1 [
        "Content-Type" => "application/x-www-form-urlencoded"
      ]
      #params: array:2 [
        "batch" => "[{"headers":["User-Agent: fb-php-5.5.0","Accept-Encoding: *"],"method":"POST","relative_url":"\/v2.9\/me\/photos","body":"url=https%3A%2F%2Fs3.ap-northeast-2.amazonaws.com%2Ftyle.io.seoul%2Fcards.exports%2FxU%2FxUOStorw3ei%2Ftyle-xUO-1.png&published=false&access_token=blahblah&appsecret_proof=blahblah","name":0}]"
        "include_headers" => true
      ]
      #files: []
      #eTag: null
      #graphVersion: "v2.9"
    }
    #thrownException: FacebookResponseException {#1171}
  }

if i use send bacth request , error exception