WordPress.org

Support

Support » Plugins and Hacks » DeMomentSomTres Facebook Events List » A wider picture of the cover photo of the event.

A wider picture of the cover photo of the event.

Viewing 4 replies - 1 through 4 (of 4 total)
  • hi,
    just replace ‘pic’ with ‘pic_big’ in the code:

    $fql = "SELECT name, pic, start_time, end_time, location, description, eid
    gets
    $fql = "SELECT name, pic, pic_big, start_time, end_time, location, description, eid

    and
    echo "<img src={$values['pic']} />";
    gets
    echo "<img src={$values['pic_big']} />";

    Now you can additionally set a width if you want:
    echo "<img src={$values['pic_big']} width='200px' />";

    https://developers.facebook.com/docs/reference/fql/event/

    Unfortunately it is still a square picture.

    Is it possible to grab the banner from an event instead of a square picture?

    http://www.nokturne.nl/events

    I solved it by changing the code to:

    $fql = “SELECT name, pic_cover, start_time, end_time, location, description, eid

    echo “<img src={$values[‘pic_cover’][‘source’]} />”;

    Plugin Author Marc Queralt i Bassa

    @marcqueralt

    hi,
    you think it will be useful to put an parameter on the shortcode in order to choose the picture size?
    I’ll try to put it as soon as I have enought time.
    I’m very busy.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘A wider picture of the cover photo of the event.’ is closed to new replies.
Skip to toolbar