The difference is Poland has lived under an oppressive socialist government and worked their way out of it while the idiots in France still think that socialism will work.
And Poland has relatively few Muslims while France has a millions of them.
Most of the Muslims in Poland are Tartars, who have lived there for centuries, and have always been loyal to Poland.