Machine Learning Techniques for Online Social Networks