Grease a 20cm square tin and preheat your air fryer to 160°C.
In a saucepan melt the butter and stir in the sugar.
Turn off the heat and stir in the oats and golden syrup. Give it a good stir until everything’s well mixed.
Transfer the flapjack mixture into the greased tin. Use the back of a spoon or a palette knife to press it down until it’s nice and compact.
Transfer the tin to the air fryer basket and set the timer for 20 minutes. Check on it after around 15 minutes. When it is ready, the mixture will be slightly firm to the touch but still slightly runny. The flapjacks will become too hard and tough to eat if you leave the edges and top to turn a darker golden brown.
Remove the tin from the air fryer basket and leave the flapjacks to cool down. Don't try to take them out beforehand or they might crumble.
When they have cooled down, slice them up and enjoy!