Social networking generates a huge amount of data which can throw useful insights if processed at the right time. Social computing is another emerging technique where social networking is made use for computational purpose. Cloud storage plays an important role in social computing. Privacy in social computing is still a debated issue. The privacy concerns and possible loopholes are discussed in detail. In this paper we are proposing some mathematical models to compute the probability of staying in social network and proposing an algorithm named firefly inspired algorithm for establishing connections (FIAEC). Copyright © 2015 Inderscience Enterprises Ltd.