Not sure this is what you're looking for, but in the Contacts app, press the Menu button, select 'Contacts to display' and then in the next dialog make an appropriate selection that eliminates the Facebook contacts.
In your Gallery, well, just go in and manually delete all of the pictures that you don't want.
Sent from my rooted, debloated, deodexed Sinclair ZX-80 running CM 10.2 using Tapatalk 4