Greens candidate quits over Facebook posts