First, you obtain the data from online social networks, then you construct an interaction graph and start analyzing network behavior.