Online social networks enabled by social networking software, such as Facebook or Google Plus, provide opportunities for e-learning and affect the behaviour of learners that participate in them. Based on social network theory, social learning theory, and theory of planned behaviour, we propose a model explaining the effects of online social networks on learning success.