Passive
When the active sentence has an indirect object and a direct object, you'd rather use the indirect object as the subject of the new sentence. That's grammatically more appropriate, though the other one is right anyway.
Eg. He gave me a heart on one of his Instagram stories.
Passive: *** I was given a heart in one of his Instagram stories.
*A heart was given to me in one of his Instagram stories.