private void Login()
 {
     try
     {
         if (_client == null)
         {
             _client = new DropNetClient(AppKey, AppSecret);
             _client.GetToken();                    
         }
         var url = _client.BuildAuthorizeUrl(Server);
         _miniWebServer = new MiniWebServer(SendResponse, Server);
         _miniWebServer.Run();
         PhotoUtils.Run(url);
     }
     catch (Exception)
     {
         Log.Error("Unable to login");
     }
 }
 private void Login()
 {
     FacebookClient client=new FacebookClient();
     client.AppId = ClientId;
     client.AppSecret = ClientSecret;
     //PhotoUtils.Run(GenerateLoginUrl(client.AppId,"publish_actions,manage_pages").ToString());
     _miniWebServer = new MiniWebServer(SendResponse, Server);
     _miniWebServer.Run();
     PhotoUtils.Run(
         GenerateLoginUrl(client.AppId, "publish_actions,manage_pages,user_photos,publish_pages").ToString());
 }