Fruit that contains psoralens, which are compounds that may cause skin to react when it's exposed to UV light. Topical application can cause sensitizing reactions, making fig an ingredient to avoid in leave-on skincare products.
References for this information:
Food and Function, December 2015, pages 3,663-3,677
Journal of Natural Products, July 2001, pages 993-996