added facebook and community functionality