Question: Is there a way to get cookies for specific domain (Facebook) and delete all them using JavaScript?

I want to delete cookies for oAuth (Facebook and Gmail) when the user logs out.

Answer: 
No, that is not possible.

You can only access the cookies of your own domain. You can't even see the cookies from a different domain.
The [jQuery Cookie plugin](http://plugins.jquery.com/project/Cookie) is useful for getting the value of a cookie when you already know the name of the cookie you want to query, but provides no way to get a list of all the cookies that are set.

Refer this [DOC](http://www.electrictoolbox.com/javascript-get-all-cookies/) for details !!!!

For deleting cookies you can use eraseCookie function