Baba Farid was born on the first day of the month of Ramzan in 1173 CE in the Punjab town of Kothiwal. His parents named him Farid-ud-Din Masaud, while “Shakar Ganj” got tagged to his name at a later stage, but he is mostly revered as Baba Farid of Pak Pattan. Baba Sheikh Farid was born at a time when Punjab was going through very tough times.
Khwaja Bakhtiar Kaki was Born around 1150 CE and studied under Abu Hafiz, a celebrated doctor of Ush, he went to Ajmer and became a disciple of Khwaja Moin-ud-Din Chishti. In due time he proceeded to Delhi where Baba Farid met him and became his disciple. Emperor Sultan Shams-ud-Din Iltutmish was also his disciple. He died in CE 1235 and was buried in Delhi, where his tomb is held in devout reverence by pious Hindus and Muslims. His descendants are called Chishtis from the tribe of his priest. - Makhazan-ul-Tawarikh.
Genealogy of Baba Sheikh Farid ji is given in the Jawahir-e-Faridi (The gems of Farid), preserved at the shrine of Pak Pattan, by Ali Asghar of Bahadal, a town near Sirhind. Baba Sheikh Farid ji descended from Farrukh Shah, who was king of Kabul and kings of Ghazni and other states were subject to him. Baba Farid ji's Great Grandfather was son of Farrukh Shah, the emperor of Kabul.
When Baba Farid was a few years old his mother taught him his prayers. The boy asked her what was gained by prayer. His mother replied Sugar. Accordingly, she used to hide some sugar under his prayer-carpet, and, when he had finished his prayers, drew it forth, and give it to him as a reward of his devotion. One day his mother forgot to put the sugar, but after prayers, there was sugar under the carpet. From that day on, Bibi Miriam started calling his son Shakar Ganj, or the treasury of Sugar. (for further details follow:http://www.sikhpoint.com/religion/bhagats&othersaints/sheikhfarid.htm)