Home › Forums › Calendar Products › Event Aggregator › Facebook Images
- This topic has 11 replies, 2 voices, and was last updated 10 years, 10 months ago by Jonah.
-
AuthorPosts
-
May 20, 2013 at 10:59 am #49056jessebredeParticipant
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.May 20, 2013 at 11:59 am #49068jessebredeParticipantI 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.jpgAny 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.
May 20, 2013 at 9:24 pm #49124JonahParticipantHi 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
May 20, 2013 at 11:01 pm #49130jessebredeParticipantHey, 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:
553359021363570May 20, 2013 at 11:23 pm #49131jessebredeParticipantI 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.
May 20, 2013 at 11:35 pm #49132jessebredeParticipantAdd my attempt to update code on Gist.
May 21, 2013 at 8:03 am #49187JonahParticipantHi 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,
JonahMay 21, 2013 at 9:08 am #49195jessebredeParticipantWord 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.May 30, 2013 at 11:10 am #50176JonahParticipantThanks 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,
JonahMay 30, 2013 at 12:27 pm #50181jessebredeParticipantExcellent. 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.
May 31, 2013 at 10:38 am #50254JonahParticipantHey 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,
JonahJune 7, 2013 at 9:06 pm #50847JonahParticipantHey 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 -
AuthorPosts
- The topic ‘Facebook Images’ is closed to new replies.