You should let them know before you take a picture of the food.
You should ask for permission before you touch anything in the store.
You should ask before you use the toilet.
この場合、次のような言い方ができますよ。
ーYou should let them know before you take a picture of the food.
「食べ物の写真を撮る前に知らせた方がいいですよ」=「一言断った方がいいですよ」
この場合は to let them know を使って言えます。
ーYou should ask for permission before you touch anything in the store.
「店のものを触る前に許可を得た方がいいですよ」=「一言断った方がいいですよ」
この場合は、to ask for permission を使って言えます。
ーYou should ask before you use the toilet.
「トイレを使う前に聞いた方がいいですよ」=「一言断った方がいいですよ」
この場合は、to ask だけでも大丈夫です。
ご参考まで!