A simple ultrasonic synthesis strategy was developed for a novel magnetic covalent organic framework. Firstly, the Fe3O4 nanoparticles were encapsulated by imine-type COF, which generated by the Schiff reaction of 4,4′,4′'-(1,3,5-Triazine-2,4,6-triyl)-trianiline (TAPT) and tris(4-formylphenyl)-amine (TFPA) using ultrasonic synthesis method within 2 h. The synthesised nanocomposites showed a sizeable specific surface area, and high adsorption capacity. A fast, sensitive MSPE method with Fe3O4@TAPT-TFPA-COF as adsorbent for analysing bisphenol compounds was developed. This method's advantages were simple operation, short extraction time, and avoidance of the use of centrifugal equipment. The method validation indicate that this method exhibited superior linearity, and detection limits range between 0.33 and 0.60 μg L–1. The recoveries of BPs ranged from 74.7 % to 107.0 %, with relative standard deviations of less than 3.8 % in water, milk, vinegar, and soy sauce samples. The proposed method was successfully applied for extracting BPs in food samples.