Your friend much put in the application. Depending on the relationship, spouse, family member or just a friend, he/she will fill thr appropriate form. Know that you can't have permanent stay visa if you're invited by a friend. You can have a visit instead. Tell your friend to do thr filing
A friend can't invite you to stay permanent. Unless there's a marriage between you two. A friend can only invite you. visit www.uscis.gov click on form i-130
Thanks! Your answer is awaiting moderation.