You can get the [angle of view][1] with the Blam add-on
-----------

You can get them both (sensor size and focal length) at one time, but only the common factor of the equation.

With [the mentioned add-on][2], that you can freely download, you are able to match the camera look starting from a bunch of grease pencil layers. If your photo has three vanishing points as the one below, you should provide three different layers, one per axis.

[![Enter image description here][3]][3]

After that you can start the camera calibration with the button on the left, and you'll get the focal length value automatically applied to the active camera.

[![Enter image description here][4]][4]

You can see from this quick modeling that the geometry is following the correct perspective deformation.

[![Enter image description here][5]][5]

And even the length of the edges results in more or less the same as you expect from a cube.

[![Enter image description here][6]][6]

Now comes the hardest part, as there is [no uniform relation][7] between the focal length of a lens and the angle of view, since the size of the camera sensor also determines the angle of view.

So in order to get the right value showed in the Exif data of the camera's focal length you must at least know the size of its sensor... (I may be wrong; there are a lots of things to consider. I hope someone who has more knowledge can help here. A related question is *http://photo.stackexchange.com/questions/21616/how-can-i-calculate-focal-length-from-a-photograph)*.

Here's the scene after feeding the fields with the [camera's real sensor][8] size and focal length: the camera has to be slightly moved away from the subject to match the previous result.

[![Enter image description here][9]][9]

*Sorry, the properties panel is in my own language, anyway it's saying:*

 - Camera Model NIKON D32000
 - Focal length = 38 mm
 - Focal length 35 mm = 57 mm
 - ....

*Image credits to [Miguel Á. Padriñán][10], you can download it [here][11].*

  [1]: https://en.wikipedia.org/wiki/Angle_of_view
  [2]: https://github.com/stuffmatic/blam
  [3]: https://i.sstatic.net/XxUl6.jpg
  [4]: https://i.sstatic.net/rhpZe.png
  [5]: https://i.sstatic.net/UXqi4.gif
  [6]: https://i.sstatic.net/ZATGT.png
  [7]: https://en.wikipedia.org/wiki/35_mm_equivalent_focal_length
  [8]: https://www.google.it/search?q=nikon%20d3200&ie=utf-8&oe=utf-8&client=firefox-b&gfe_rd=cr&ei=JSAvV6jMLsGH8QfzhIfIDQ#q=nikon%20d3200%20sensor%20size
  [9]: https://i.sstatic.net/yepXL.png
  [10]: https://www.pexels.com/u/padrinan/
  [11]: https://www.pexels.com/photo/mathematics-colorful-game-color-19677/