From within the friendship garden, tap on the envelope on the top right. This will generate an image with your specific code that can be shared. 

From the main friendship garden screen, you can also tap your plant on the bottom. This will bring up your friendship code which can be copied from there.