Go to Find my iPhone app in your friend's iPhone and remove the other user ID in the app.
Now, click the forgot Apple ID option and follow the instructions mentioned.
Once you logged in, you can see your device movements tracked in real-time with the help of GPS.