imported the latest fb app codes & made changes to store to database when a post is created