Knowing which flowers you can eat takes time learning and gathering.
The following are edible flowers:
hibiscus
rose
rose geranium
violet calendula
chive
basil
cherry blossom
orange blossom
zucchini blossom
and
nasturtium
I hope that explains a lot