Question: I am Using facebook C# SDK to connect to facebook from my mvc3 application.
I am able to login but not able to logout.
I used bellow code for logout

```
var oauth = new FacebookClient();

        var logoutParameters = new Dictionary<string, object>
              {
                  { "next", "http://localhost:8691" }
              };

        var logoutUrl = oauth.GetLogoutUrl(logoutParameters);

        return Redirect(logoutUrl.ToString());

```

This code always redirects me to facebook home page.

Answer: 
From the [docs](http://dev.mysql.com/doc/refman/5.5/en//connector-net-visual-studio-making-a-connection.html)

> 
> You can also set the port to connect with the MySQL server by pressing
>  the Advanced button.
> 
> 
>
After the ip just add ":portnumber" on the connection string