Question: love me like you do who wrote it
Answer: The song was written by Savan Kotecha , Ilya Salmanzadeh , Tove Lo , Max Martin and Ali Payami ; the latter two also produced it .