It means you were not appreciated. Taken for granted means to be treated like you would stay around forever despite someone treating you wrong. It's not appreciating or understanding the importance...
Example of being taken for granted after a breakup: If your ex keeps in touch with you and wants to either keep seeing you, but does not commit to a relationship or complaining about their life they...