Syncing periods ?

My friend told me if you hang out with someone enough , or if you live with them , your periods can become synced and you can have the same cycles 
​My question is , is this true, and how much do you have to hang out with someone for it to become synced ?