The FAA in the United States used to allow the use of personal devices with the exception of during critical stages of operation, known as the "Sterile Cockpit Rule". Then in 2014, the regulation was augmented which banned the use of personal devices for pilots all together.
For many reasons like the segment done on "Pilots of Instagram", photography during flights have attracted a lot of negative attention from social media. I think for that reason, do's and don'ts tips for posting on social media exists - google pilot social media posts to see some examples. I think many employers in the country are strict with their aircrew because this and how it reflects poorly. I'm not an expert or anything, I just did some quick research.