Title: FBAPIException error
Last modified: June 10, 2020

---

# FBAPIException error

 *  [noradesio](https://wordpress.org/support/users/noradesio/)
 * (@noradesio)
 * [6 years ago](https://wordpress.org/support/topic/fbapiexception-error/)
 * Hi, I have a problem with the plugin, it seems that everything works but I receive
   this error:
    Something went wrong during the connection with Facebook API.
 * What can I do?
    Thank you
 * —- Report: 2020-06-10T10:43:22+00:00 —-
 * Exception: PixelCaffeine\Admin\Exception\FBAPIException
 * ——————–
 * Message: Something went wrong during the connection with Facebook API. Please,
   try to [refresh the page](https://dotwit.it/wp-admin/admin.php?page=aepc-settings&tab=dashboard).
 * —- Context —-
 * Array
    ( [code] => 500 [$_REQUEST] => Array ( [action] => aepc_get_pixel_stats[
   _wpnonce] => b9eaff0b98 )
 *  [response] => Array
    ( [headers] => Requests_Utility_CaseInsensitiveDictionary
   Object ( [data:protected] => Array ( [content-type] => application/json [content-
   length] => 72 [date] => Wed, 10 Jun 2020 10:43:22 GMT [x-amzn-requestid] => 1abd9f6f-
   1856-463f-bcf9-9a234a692681 [x-amz-apigw-id] => N6HjnG67IAMFp5Q= [x-amzn-trace-
   id] => Root=1-5ee0b94a-6366baf8b9f6b1e8fcbab1b4;Sampled=0 [x-cache] => Error 
   from cloudfront [via] => 1.1 121c88058ec4bc13c2348ddff26afc99.cloudfront.net (
   CloudFront) [x-amz-cf-pop] => MXP64-C2 [x-amz-cf-id] => yQlteJFoYlzVyNYrQ4wuaXPQL4EQcV-
   2ILZcBBTrbTCQjEXEtcC5Mw== )
 *  )
 *  [body] => {"errorType":"string","errorMessage":"500 Application Error","trace":[]}
   [
   response] => Array ( [code] => 500 [message] => Internal Server Error )
 *  [cookies] => Array
    ( )
 *  [filename] =>
    [http_response] => WP_HTTP_Requests_Response Object ( [response:
   protected] => Requests_Response Object ( [body] => {"errorType":"string","errorMessage":"
   500 Application Error","trace":[]} [raw] => HTTP/1.1 500 Internal Server Error
   Content-Type: application/json Content-Length: 72 Connection: close Date: Wed,
   10 Jun 2020 10:43:22 GMT x-amzn-RequestId: 1abd9f6f-1856-463f-bcf9-9a234a692681
   x-amz-apigw-id: N6HjnG67IAMFp5Q= X-Amzn-Trace-Id: Root=1-5ee0b94a-6366baf8b9f6b1e8fcbab1b4;
   Sampled=0 X-Cache: Error from cloudfront Via: 1.1 121c88058ec4bc13c2348ddff26afc99.
   cloudfront.net (CloudFront) X-Amz-Cf-Pop: MXP64-C2 X-Amz-Cf-Id: yQlteJFoYlzVyNYrQ4wuaXPQL4EQcV-
   2ILZcBBTrbTCQjEXEtcC5Mw==
 * {"errorType":"string","errorMessage":"500 Application Error","trace":[]}
    [headers]
   => Requests_Response_Headers Object ( [data:protected] => Array ( [content-type]
   => Array ( [0] => application/json )
 *  [content-length] => Array
    ( [0] => 72 )
 *  [date] => Array
    ( [0] => Wed, 10 Jun 2020 10:43:22 GMT )
 *  [x-amzn-requestid] => Array
    ( [0] => 1abd9f6f-1856-463f-bcf9-9a234a692681 )
 *  [x-amz-apigw-id] => Array
    ( [0] => N6HjnG67IAMFp5Q= )
 *  [x-amzn-trace-id] => Array
    ( [0] => Root=1-5ee0b94a-6366baf8b9f6b1e8fcbab1b4;
   Sampled=0 )
 *  [x-cache] => Array
    ( [0] => Error from cloudfront )
 *  [via] => Array
    ( [0] => 1.1 121c88058ec4bc13c2348ddff26afc99.cloudfront.net(
   CloudFront) )
 *  [x-amz-cf-pop] => Array
    ( [0] => MXP64-C2 )
 *  [x-amz-cf-id] => Array
    ( [0] => yQlteJFoYlzVyNYrQ4wuaXPQL4EQcV-2ILZcBBTrbTCQjEXEtcC5Mw
   == )
 *  )
 *  )
 *  [status_code] => 500
    [protocol_version] => 1.1 [success] => [redirects] => 
   0 [url] => [https://wca-connector.adespresso.com/prod/request](https://wca-connector.adespresso.com/prod/request)[
   history] => Array ( )
 *  [cookies] => Requests_Cookie_Jar Object
    ( [cookies:protected] => Array ( )
 *  )
 *  )
 *  [filename:protected] =>
    [data] => [headers] => [status] => )
 *  )
 * )
 * ---- Serialized Context ----
 * a:3:{s:4:"code";i:500;s:9:"$_REQUEST";a:2:{s:6:"action";s:20:"aepc_get_pixel_stats";
   s:8:"_wpnonce";s:10:"b9eaff0b98";}s:8:"response";a:6:{s:7:"headers";O:42:"Requests_Utility_CaseInsensitiveDictionary":
   1:{s:7:" * data";a:10:{s:12:"content-type";s:16:"application/json";s:14:"content-
   length";s:2:"72";s:4:"date";s:29:"Wed, 10 Jun 2020 10:43:22 GMT";s:16:"x-amzn-
   requestid";s:36:"1abd9f6f-1856-463f-bcf9-9a234a692681";s:14:"x-amz-apigw-id";
   s:16:"N6HjnG67IAMFp5Q=";s:15:"x-amzn-trace-id";s:50:"Root=1-5ee0b94a-6366baf8b9f6b1e8fcbab1b4;
   Sampled=0";s:7:"x-cache";s:21:"Error from cloudfront";s:3:"via";s:64:"1.1 121c88058ec4bc13c2348ddff26afc99.
   cloudfront.net (CloudFront)";s:12:"x-amz-cf-pop";s:8:"MXP64-C2";s:11:"x-amz-cf-
   id";s:56:"yQlteJFoYlzVyNYrQ4wuaXPQL4EQcV-2ILZcBBTrbTCQjEXEtcC5Mw==";}}s:4:"body";
   s:72:"{"errorType":"string","errorMessage":"500 Application Error","trace":[]}";
   s:8:"response";a:2:{s:4:"code";i:500;s:7:"message";s:21:"Internal Server Error";}
   s:7:"cookies";a:0:{}s:8:"filename";N;s:13:"http_response";O:25:"WP_HTTP_Requests_Response":
   5:{s:11:" * response";O:17:"Requests_Response":10:{s:4:"body";s:72:"{"errorType":"
   string","errorMessage":"500 Application Error","trace":[]}";s:3:"raw";s:575:"
   HTTP/1.1 500 Internal Server Error
    Content-Type: application/json Content-Length:
   72 Connection: close Date: Wed, 10 Jun 2020 10:43:22 GMT x-amzn-RequestId: 1abd9f6f-
   1856-463f-bcf9-9a234a692681 x-amz-apigw-id: N6HjnG67IAMFp5Q= X-Amzn-Trace-Id:
   Root=1-5ee0b94a-6366baf8b9f6b1e8fcbab1b4;Sampled=0 X-Cache: Error from cloudfront
   Via: 1.1 121c88058ec4bc13c2348ddff26afc99.cloudfront.net (CloudFront) X-Amz-Cf-
   Pop: MXP64-C2 X-Amz-Cf-Id: yQlteJFoYlzVyNYrQ4wuaXPQL4EQcV-2ILZcBBTrbTCQjEXEtcC5Mw
   ==
 * {"errorType":"string","errorMessage":"500 Application Error","trace":[]}";s:7:"
   headers";O:25:"Requests_Response_Headers":1:{s:7:" * data";a:10:{s:12:"content-
   type";a:1:{i:0;s:16:"application/json";}s:14:"content-length";a:1:{i:0;s:2:"72";}
   s:4:"date";a:1:{i:0;s:29:"Wed, 10 Jun 2020 10:43:22 GMT";}s:16:"x-amzn-requestid";
   a:1:{i:0;s:36:"1abd9f6f-1856-463f-bcf9-9a234a692681";}s:14:"x-amz-apigw-id";a:
   1:{i:0;s:16:"N6HjnG67IAMFp5Q=";}s:15:"x-amzn-trace-id";a:1:{i:0;s:50:"Root=1-
   5ee0b94a-6366baf8b9f6b1e8fcbab1b4;Sampled=0";}s:7:"x-cache";a:1:{i:0;s:21:"Error
   from cloudfront";}s:3:"via";a:1:{i:0;s:64:"1.1 121c88058ec4bc13c2348ddff26afc99.
   cloudfront.net (CloudFront)";}s:12:"x-amz-cf-pop";a:1:{i:0;s:8:"MXP64-C2";}s:
   11:"x-amz-cf-id";a:1:{i:0;s:56:"yQlteJFoYlzVyNYrQ4wuaXPQL4EQcV-2ILZcBBTrbTCQjEXEtcC5Mw
   ==";}}}s:11:"status_code";i:500;s:16:"protocol_version";d:1.1000000000000001;
   s:7:"success";b:0;s:9:"redirects";i:0;s:3:"url";s:49:"https://wca-connector.adespresso.
   com/prod/request";s:7:"history";a:0:{}s:7:"cookies";O:19:"Requests_Cookie_Jar":
   1:{s:10:" * cookies";a:0:{}}}s:11:" * filename";N;s:4:"data";N;s:7:"headers";
   N;s:6:"status";N;}}}
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffbapiexception-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Antonino Scarfì](https://wordpress.org/support/users/antoscarface/)
 * (@antoscarface)
 * [6 years ago](https://wordpress.org/support/topic/fbapiexception-error/#post-12969818)
 * Hi,
 * it seems a temporary issue. Please, try to use the plugin as normal, trying to
   create custom audience and check the stats graph in the dashboard of pixel caffeine.
 * If the issue persists, try to reset the Facebook connection, following these 
   steps:
    1. Go into your [Facebook account -> Settings -> Business integrations](https://www.facebook.com/settings?tab=business_tools),
       find the app Pixel Caffeine and remove it (don’t worry, you won’t lose anything);
    2. Go in the admin of the plugin -> General Settings
    3. Open the “Advanced Box” box at the bottom of the page
    4. Scroll down and click into the button “Reset Facebook Connection” (again, you
       won’t lose anything)
    5. Make a new Facebook login and confirm all permissions
 * Then, re-connect again your Facebook account.

Viewing 1 replies (of 1 total)

The topic ‘FBAPIException error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/pixel-caffeine_e2ce0c.svg)
 * [Pixel Caffeine](https://wordpress.org/plugins/pixel-caffeine/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pixel-caffeine/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pixel-caffeine/)
 * [Active Topics](https://wordpress.org/support/plugin/pixel-caffeine/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pixel-caffeine/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pixel-caffeine/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Antonino Scarfì](https://wordpress.org/support/users/antoscarface/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/fbapiexception-error/#post-12969818)
 * Status: not resolved