Architecture photography is a unique discipline in that it usually offers extremes of perspective in the vertical direction instead of the horizontal. It also offers restrictions in that you can't always afford yourself the ideal vantage point as you are limited by space either on the ground around the building you wish to photograph, or inside by the perimeters of the building or room itself.
What this means in essence is it's often beneficial if not essential to make the most of the available space in order to capture as much of the scale and detail of the building or feature. This means that, as for landscapes, you will find yourself tending to use a wide angle lens most of the time. The problem here is that, unlike for landscapes, man-made structures tend to use a lot of straight lines. Wide angle lenses will accentuate and warp these lines making them converge or diverge in odd places. This is of course not seen in real life, so it makes the images 'pinched' and unrealistic. This effect can be minimised somewhat in post production, or if the main feature in centralised in the frame, but it can still be apparent.
Some camera brands, eg Canon, offer a small selection of very specialised lenses called tilt-shift lenses. Available in a few key focal lengths (including a fairly wide 24mm), they enable the focal plane to be shifted relative to the sensor in the camera. They enable converging or diverging lines to become straight again, as is in real life. They can be fiddly to work with however, and require some practice to achieve the desired effect but are a great way to maintain a sense of realism when it comes to straight lines.
There may be times when you want to focus more on a specific part of the overall scene, or you are able to step back a bit, in which case you can absolutely increase your focal length. Something around the 50-85mm range will have much less in the way of perspective warping, maintaining some straightness to those artificial lines.
However, what I feel is the best part of really embracing architecture photography is finding some new and interesting angles from which to really capture the shapes and lines of the building in question, especially if it's a modern one. So I stick with a wide angle lens and really get in a position where the perspective is warped to some extent. This helps to exaggerate size too while emphasising elements in the foreground. You can really get creative with your photographs which is great if you are a hobbyist. For the professionals who want more of a sense of realism, you will need to go a little higher in the focal lengths to bring down the distortion a bit, and be wary of angles and compositions that warp the lines too much. There will always be a happy medium, it just requires a bit of patience!
Informative posts about weddings and related things, as well as general photography stuff.