Adding URL parameterization to facebook.py

Adding this parameterization creates cleaner code, and somewhat easier extensibility.