Support » Plugins and Hacks » Simple Facebook Connect events

Simple Facebook Connect events

  • Dear WP users,

    Currently I am using the Simple Facebook Connect plug-in pack. One of the plug-ins in the pack is the events plug-in.

    I am wondering, is there a way to modify the HTML output for this plug-in.
    Because now you got ‘date of event’ without a class/id or anything + FB_eventLink FB_ElementReady. Don’t have much flexibility now to do thing in CSS.

    Kind regards,


Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator Samuel Wood (Otto)


    WordPress.org Tech Dude

    Just edit the plugin to output the HTML you want.




    I’m actually trying to get the Facebook upcoming events for SFC work

    sfc_upcoming_event_output($event) show the event date.

    but <fb:eventlink eid=”<?php echo $event[“eid”]; ?>”></fb:eventlink> don’t seems to work …

    It can works in HTML but it’s not very reliable



    I can’t seem to get upcoming events to work. All I get is a list of dates and they are the end dates for the events, not the start dates. Anyone else having this problem?



    Hi bmbingham,

    I have the same problem, I can only see upcoming events end dates.

    When you watch $event array, you have access to some of the event information but following things have to be done :
    – show start and end time for 3 cases (only start time, start time = end time, start time != end time)
    – translate time (works with date_i18n() function)

    I’m not really used to facebook FBML but there’s a page about fb:eventlink in the facebook documentation : http://developers.facebook.com/docs/reference/fbml/eventlink I don’t get it works …

    If some have a solution !



    I give you my solution, but I don’t find the following code reliable (too much echo), if :

    i have changed :
    <fb:eventlink eid="<?php echo $event["eid"]; ?>"></fb:eventlink>


    <div class="event">
    <?php echo date('l dS F Y',$event['start_time']); ?>
    <img src="<?php echo $event['pic_small']; ?>" />
    <?php echo $event['name']; ?>
    <?php echo $event['tagline']; ?>
    Type: <?php echo $event['event_type']?> - <?php echo $event['event_subtype']?><br/>
    Where: <?php echo $event['location']?><br/>
    When: <?php echo date("dS F Y h:i",$event['start_time'])?> - <?php echo date("dS F Y h:i",$event['end_time'])?><br/>

    Is there a way to format the output from Rubadub’s code? The thumbnail hangs on the end of the description. It would also be nice to have
    – The title in bold text.
    – Scrollable output
    and so on

    Can’t get my site to display the correct time. It is still about 8 hrs ahead (“Facebook server time”??).


    add “date_default_timezone_set(“America/Los_Angeles”);” after “function sfc_upcoming_event_output($event) {“. Set the timezone to the same timezone that hosts your server.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Simple Facebook Connect events’ is closed to new replies.