One should avoid rubbing the eye. The simplest method of treating this is with artificial tears.
Other initial treatments could include warm compresses with a warm washcloth or eyelid scrubs with cotton tip applicator and some baby shampoo in warm water.
Of course,
if you believe there is actually a foreign particle in your eyes then you should have a complete exam by an Eye specialist.