The responsibilities of the joint sponsor (e.g. you) is the same as the sponsor (your friend). Read:
https://www.uscis.gov/green-card/green-card-processes-and-procedures/affidavit-support
http://www.immihelp.com/affidavit-of-support/sponsor-responsibilities-obligations.html