Facebook Images

Home Forums Calendar Products Event Aggregator Facebook Images

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #49056
    jessebrede
    Participant

    When I import an event from Facebook, the image is incredibly slow. I have a feeling this has to do with the theme but I’m not sure how to fix this.

    Here’s an example event:
    http://electricavenueatx.com/event/art-over-congress-ed-4
    Here’s the event:
    https://www.facebook.com/events/543000385751002/permalink/543007819083592/
    Going to try using the 2011 theme.

    #49068
    jessebrede
    Participant

    I reverted to 2011 theme and imported this event:
    https://www.facebook.com/events/137246133122585/
    The image that was created for the event is the following:
    http://electricavenueatx.com/wp-content/uploads/2013/05/facebook_event_137246133122585.jpg

    Any idea why its so small? I’d like for the script to pull down the full image size and set that image as the featured image. From their, using the image anywhere in the theme, using the get_thumbnail() function with the proper image size would work properly.

    #49124
    Jonah
    Participant

    Hi jessebrede,

    Try implementing this snippet to import the larger image: https://gist.github.com/codearachnid/5371606

    As for the slowness this is probably either due to your web host or having other plugins installed. Have you tried deactivating all other plugins to see if this helps? Who are you hosting with?

    – Jonah

    #49130
    jessebrede
    Participant

    Hey, that’s works better for some events but I got this error:

    Fatal error: Cannot use object of type WP_Error as array in /home/gravitas/electricavenueatx.com/wp-content/plugins/the-events-calendar-facebook-importer/the-events-calendar-facebook-importer.php on line 281

    on this event:
    553359021363570

    #49131
    jessebrede
    Participant

    I figured it out. Basically, there are still events with the old style image, those will cause the fatal error for the new code. The new style of facebook events have the timeline banner. Those use the new code that you sent me. I think you need to add soem code to test for both. Can’t post code here but I’m sure you get what I mean.

    #49132
    jessebrede
    Participant

    Add my attempt to update code on Gist.

    #49187
    Jonah
    Participant

    Hi jessebrede,

    I see what you mean with the error. I’ve created a ticket for one of our developers to take a look at this and hopefully revise the code to account for the old image style. Stay tuned for an update.

    Thanks,
    Jonah

    #49195
    jessebrede
    Participant

    Word em up. Here’s what I ended up with last night: http://electricavenueatx.com/event/audien-kingdom-06-14
    The top image utilizes the new Facebook image size 851×351. Once we get this issue resolved, I’m going to test to see if that size image exists and if it does, have a layout that uses that image size and if not, use the horizontal image. I’m basically mimicking the facebook layout style as well.

    #50176
    Jonah
    Participant

    Thanks jessebrede, one of our developers is going to take a look at the code in the next couple days and hopefully have sometime more concrete by next week. Keep an eye out here or in the Gist for an update.

    Regards,
    Jonah

    #50181
    jessebrede
    Participant

    Excellent. The problem really stems from the recent change of layout and image size for facebook events. Once old events clear out, the timeline banner size images will be the norm.

    #50254
    Jonah
    Participant

    Hey jessebrede,

    I just tested Tim’s code update with this event (https://www.facebook.com/events/137246133122585/) and it imported the full sized image. Can you please test out the code too with some older events to see if it fixes the issue and report back here?

    Thanks,
    Jonah

    #50847
    Jonah
    Participant

    Hey jessebrede,

    Haven’t heard from you on this in some time so we’re going to assume it’s working for you and I’m closing out the thread. If you need additional help, please open a new thread.

    Thanks,
    Jonah

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Facebook Images’ is closed to new replies.