There is no specific legal framework for social media. This means the author retains their right of paternity of the work and you have to mention the author when they have chosen not to remain anonymous. If the work is referenced via a quotation, you need to do some research to make sure you have quoted the source correctly, in particular when good scientific practice needs to be respected.