Simple Facebook Connect events (9 posts)

  1. zhrance
    Posted 5 years ago #

    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,


  2. Just edit the plugin to output the HTML you want.

  3. rubadub
    Posted 5 years ago #


    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

  4. bmbingham
    Posted 5 years ago #

    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?

  5. rubadub
    Posted 5 years ago #

    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 !

  6. rubadub
    Posted 5 years ago #

    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/>
  7. molkom
    Posted 5 years ago #

    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

  8. thijsvb
    Posted 5 years ago #

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


  9. johnsamwallace
    Posted 5 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic