I'm sorry about the issue. When did this issue first occur?
Can you please click on the Apple logo / menu, then click on About this Mac..., then tell me your Mac OS X version, i.e., 10.6, 10.7, 10.8, 10.9, 10.10, etc.?
What is your Internet browser application, such as Safari, Firefox, Chrome, etc.?
Besides the issue with google and facebook, are other websites that you go to working fine?
Please reply at the box below. Thank you.