to get oneself taken; to have oneself taken or photographed, depending on context
Ils étaient inquiets de se faire prendre.
They were worried about getting caught.
Tom a failli se faire prendre.
Tom almost got caught.
Le voleur est certain de se faire prendre, au bout du compte.
The thief is sure to get caught eventually.
On a failli se faire prendre plusieurs fois.
We almost got caught several times.