adding FB social media functions and gallery back-end support