I have seen some websites have intext ads in their content which goes to my facebook homepage? Can some one explain the steps how its possible?

This looks like intextual.com to me. Since it's commercial ware, they should answer your queries.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.