the only difference is what it is your talking about
example:
Me gusta este libro- I like this book
Me gusta leer libros- I like to read books or I like reading books
if you use a noun after gusta you have to pay attention weather the noun is singular or plural. If the noun is plural you need to change gustar plural and that will be " gustan "
Me gustan libros- I like books