Where do I find the invitation code?

Open the shared goal and then on the share button . You can resend your invitation by tapping on Share Goal. Your code and already sent out invitations will not be altered and are still valid.