Configuration improvements

Fixed the application id configuration for open graph.
Allow setting no application id.