A while back, I got a friend to share an app with me which was no longer on the app store. He logged in to his Apple ID on my iPhone, went to 'Purchased', and downloaded the app for me(Which, according to Apple, is perfectly legal- the app was free to get).
Now, I'd like to transfer the app to another friend. However, the app in question doesn't show up in my 'Purchased', because I never downloaded it from the app store. Is there any way I can give that app to my friend without the use of my first friend's Apple ID?