I'm assuming you mean storage rather than RAM (which is memory used for things that are running). Most of that space is basically cached content that gathers over time that you use the app. Best way to get rid of it is to delete the Facebook app and install it again.