Question: I've a very small doubt. I've a html tag to browse the file. and as soon as I browse the file from the local server, I want to set that path to the source of image tag. Is it possible to implement?

I've code something like this.

```
<form name="image" id="image" enctype="multipart/form-data" action="" method="post">

   <input type="file" name="img" />
   <img src=""></img>

</file>

```

So as soon as I browse and select the file from the local server,that path should be set to image tag.My intention is to browse the image and display it in that page itself. Any help will be appreciated. Thanks in advance.

Answer: 
There is [m.facebook.com](http://bugs.developers.facebook.net/show_bug.cgi?id=17217) bug that says next is being ignored. You could always use `https://www.facebook.com/logout` instead.

Also your logout URL has to be in the domain of the app you registered on Facebook, localhost will not work. 

```
string url = string.Format("https://www.facebook.com/logout?confirm=1&next={0}&access_token={1}", 
                       ConfigurationManager.AppSettings["Facebooklogout"], 
                       token)

```

Please take note above, the logout URL *must* be in the same domain as the app. So the above would not redirect to localhost:xxx
I have resolved the above issue long ago by using the following javascript on click of "Save Button".

```
<script type="text/javascript">
        function logoutFacebook() {

        }

        window.onload = function () {
            var ID = document.getElementById('hfID').value
            FB.init({ apiKey: ID });
            FB.getLoginStatus(handleSessionResponse);
        }
        function handleSessionResponse(response) {
            FB.logout(handleSessionResponse);
        }
</script>

```