Home › Forums › Calendar Products › Event Aggregator › Facebook events doesn’t import event photo
- This topic has 6 replies, 3 voices, and was last updated 9 years, 5 months ago by Leah.
-
AuthorPosts
-
August 15, 2014 at 3:36 pm #675479ayatangoParticipant
Hi,
Facebook events doesn’t import the event photo for me.
Can you help?
Thx,
AndreiAugust 18, 2014 at 8:06 am #681077BarryMemberHi Andrei – I’m sorry it isn’t working for you.
Can you point me towards the Facebook URL for one of the events you’re having difficulties with?
August 18, 2014 at 9:49 am #681381ayatangoParticipantSure, the facebook event is https://www.facebook.com/events/695152427225754/
My site is http://arcemontes-tango.com/, and the event is the first event in the list.
It is an event imported by pointing the page id in settings. Could it be because the event is written in Russian? 🙂
except the photo, another strange issue with this event is that the title is bold text, except the first letter of the title. I’m using X theme, but I don’t think it’s a theme issue.
August 19, 2014 at 6:06 am #683519BarryMemberThanks for your patience 🙂
I don’t think it’s necessarily because the event is in Russian, but for some reason there is some extra information at the end of the cover image URL and instead of ending with a typical image file extension like .jpg or .png we’ve got a different set of characters: that’s confusing WordPress, which is rejecting the image as not being an acceptable file type.
Ultimately though this is something we should be able to A) address in a future release and B) can hopefully workaround in the interim with a short snippet:
add_filter( 'tribe_fb_event_img', 'fb_import_image_ext_fix' ); function fb_import_image_ext_fix( $event_picture ) { if ( ! is_array( $event_picture ) ) return $event_picture; if ( ! isset( $event_picture['url'] ) ) return $event_picture; $length = strlen( $event_picture['url'] ); $query_starts = strpos( $event_picture['url'], '?' ); if ( false === $query_starts ) return $event_picture; if ( $query_starts < $length && $query_starts > 0 ) $event_picture['url'] = substr( $event_picture['url'], 0, $query_starts ); return $event_picture; }
Can you try adding the above code to your theme’s functions.php file and see if that helps to resolve this?
September 4, 2014 at 8:04 pm #723361BarryMemberHi! It’s been a while so I’m going to go ahead and close this thread. If we can help with anything else, though, please don’t hesitate to create new threads as needed. Thanks!
September 26, 2014 at 12:21 pm #768995LeahMemberHi there,
Thanks for bringing this issue to our attention. We weren’t able to get to it for our upcoming 3.8 release, but it is still very much on the radar. We hope to have it fixed in an upcoming release, and we will do our best to keep you posted on our progress. Thanks for your patience and support!
Best,
Leah
and the team at Modern TribeDecember 5, 2014 at 2:27 pm #909495LeahMemberHello,
I just wanted to update you here and let you know that we have a fix for the issue you reported in our upcoming release. Thank you for bringing it to our attention! Keep an eye out for an update coming soon. If you are still experiencing issues after the update, please start a new thread and we’d be happy to look into it. Thank you for your patience and support while we got this corrected.
Best,
Leah -
AuthorPosts
- The topic ‘Facebook events doesn’t import event photo’ is closed to new replies.