How to delete Facebook data from contacts

I downloaded a Jailbreak App "Flex 2" and while searching for tweaks within the app i found something called "Remove Facebook Photos", what is does is it removes the Facebook photos synced in the contacts.app via Facebook. When i opened my contacts app, i found a "0" next to all my contacts and still the photos exist. Do you have any idea how to remove all the "0" in the contacts with a single click? I tried to reverse the process i did with Flex 2 but it didn't work, so i removed the app. Please help me as this 0 is stuck in all my 700+ contacts and it's impossible to do them manually!
Couldn't you have gone to Settings - Privacy - Contacts and then disabled Facebook access?
I did that but it's still there

Original thread: https://forums.imore.com/threads/how-to-delete-facebook-data-from-contacts.297679/