How can I prevent my old iPhone from getting Facebook messages?
It sounds like your account is still linked to your old phone.

Make sure you are signed out of Facebook on that phone. If this doesn't work, try deleting and reinstalling the app. (This should clear any settings associated with the app.)