facebook events widget for wordpress v1.1.7

A new release of the facebook events widget for wordpress.

Changes since v1.1.4:

  • 1.1.7
    • displaying no events message where there are no events.
  • 1.1.6
    • fix not displaying times for events.
    • added new checkbox for old timestamps.
      if your using an old app id and you notice events from the past then you should mark this.
  • 1.1.5
    • fix parsing events timestamps.


50 thoughts to “facebook events widget for wordpress v1.1.7”

  1. i,

    I installed the plugin and configured it. But I get a certificate exception:

    Caught exception: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

    what is wrong?

    1. Hi,
      not sure why you get this but can u try the following.
      edit the file facebook.php around line 109 there are the default curl options.
      try to add CURLOPT_SSL_VERIFYPEER as false.

      1. I am having the same token error…I have the ID and secret ID. I believe the page ID is correct…but still getting the error. I could find where to add CURLOPT_SSL_VERIFYPEER as false
        In the editor

  2. Hi, I’m also having problems with start time / end time not matching the FB events. The events happen in different time zones around the world, so the hours are off by various counts. Otherwise great plugin!!

    Help please?

    1. btw if I can just remove all instances of time (and just leave the date), that would be fine too. I’m not sure which lines of code to remove as the date and time seem to be connected together?

      thx again

      1. so each event different timezone?
        can you share the page url, i would like to see if i can get timezone off the events.

        as for removing time, look in lines 338 and 345.
        you can remove the if-else block and leave $start_time=” and $end_time=”

        so you wont see times at all but only days.

  3. I’m also having troubles with having the correct times displaying but it’s only happening in the headings. Eg. it shows the proper event date & time but the heading says “TOMORROW” when it’s actually the day after tomorrow.

    I’ve tried adjusting all of the timezones but I can’t seem to get it to display properly. Any ideas?

      1. ROI,
        I have the plugin on 2 different pages – 1 is here: http://streamingcafe.net/events/

        You can see the different events here and see how the first one is missing.

        I’ve taken out the separators for now since they weren’t showing up properly… this isn’t a big deal. It’s just that the first event displayed has the proper time but the others are 1 hour off (which doesn’t make any sense to me).
        Thx for looking at this.

  4. Hello. I am having a similar issue as others with start/end times being incorrect for events that happen in different time zones.

    For example, if I create an event at 5pm in NYC, it will display correctly, but if I create an event in Los Angeles at 5 pm, it will display as 8pm. I have the “Adjust Time” option in the widget set to “4”.

    It seems that the “Adjust Time” option in the widget doesn’t take into account the possiblilty that events might occur in different time zones?

    Also – there was a problem with daylight savings where I had to adjust the “Adjust Time” option down from 5 to 4, I guess it is not adjusted automatically?

    1. I never checked fan page with multiple time zones.
      can you share the fan page link so I can check?

      about the daylight. i format the time according to what set in wordpress settings so it should have worked. i’ll check that.

  5. Roi, trying to configure the plugin but getting the error about the token. I have each of the lines filled in including the token, but still the error. You mentioned above on line 109 adding curl…but not sure where to put it. Would appreciate your support.


    1. In facebook.php line 109 you see this code:

      public static $CURL_OPTS = array(
      CURLOPT_TIMEOUT => 60,
      CURLOPT_USERAGENT => 'facebook-php-2.0',

      try to add inside:


  6. The times of events on my website are all off by 1 hour starting on Nov. 5. I have two events each night, at 8 and 10pm, but they are showing as 9 and 11pm. I assume it has to do with daylight savings time but I don’t see how to change it. Thanks.

              1. The events page is http://www.acousticcoffeehouse.net. That’s where the widget is. The Facebook events are at https://www.facebook.com/pages/The-Acoustic-Coffeehouse/131339056030. Let me know if you need passwords.

                You can see which times are incorrect on our site because all of our shows are at either 8 or 10pm. The incorrect ones are showing as 9 and 11pm, even though they’re displaying on Facebook as 8 and 10. Thanks for your help! -Jim

                1. ok the problem is with daylight saving time.
                  I have a fix to test. can you email me so I can send it to you with instructions?

  7. Hi Roi, would it be possible in your opinion to let the widget show the participants (along with small thumbnails of their fb profile picture) who have confirmed their attendance to the event?
    Would you be so kind to post the code I should integrate?
    Thanks a lot 😉

    1. it is possible. but there isn’t enough room usually when using the widget on a small space.
      I don’t have code to paste here as it’s more than just a few lines.

      basically, you can add to the query to receive info for each member of the event, name and pic. then need to use that info in the create div event function.

  8. Hi,

    Thank you for the plugin and your time! One question as it seems everything works fine: Can we reverse the sorting of the events if all events are displayed? Right now they are in descending, and I can’t reverse the order?

    We are currently seeing a list of 6-7 events, first of which is in March 2014… last is November 2013 (which should be first).

    Thank you again for your time!

    1. Oh geez- sorry, I’m wrong. I thought we had older version and it was 1.7.. Please disregard that last comment reply. thanks and sorry.

  9. The facebook events widget is working, however there is a blank space after the widget that I can’t figure out how to get rid of. Any help would be appreciated.

    1. Hi Andrew,

      It’s the container height.
      Try editing style.css and look for .fb-events-container
      change height to max-height.
      This should solve it.


  10. Hello Roi

    I was using your plug in, it was working well until a week more or less when I discovered there is a message that said: Caught exception: SSL certificate problem: certificate has expired

    Any advice on that?

    Honestly, I’m not an expert. I checked all data in my Facebook App and I guess it’s the same.

    Many thanks in advanced.

  11. Hi Raul,

    It doesn’t happen to me but try one of the following solutions:

    1. try to update the certificate.
    replace the file https://raw.githubusercontent.com/facebook/facebook-php-sdk/master/src/fb_ca_chain_bundle.crt

    with the file in the plugin directory.

    2. ignore the ssl certificate.

    In facebook.php line 109 you see this code:

    public static $CURL_OPTS = array(
    CURLOPT_USERAGENT => ‘facebook-php-2.0’,

    try to add inside:



  12. Hi there, I’m having the same problem Mark had but the solution doesn’t work for me 🙁

    It worked fine until yesterday but today it says ‘Caught exception: Problem with the SSL CA cert (path? access rights?)’.

    Do you have any suggestion to solve this?

    Grtz, Eric

    1. Hi Eric,

      did you try solution #2 I posted above?
      Could be you have another plugin using facebook api?
      Could be mismatch between versions.

      I’d be happy to try and help more if you can email me a temporary admin user so I can take a look.


Leave a Reply

Your email address will not be published. Required fields are marked *