Add dynamic working url to fb invite javascript