How do I hide session information from url after successful authentication through facebook connect?

My solution to this problem was the following.

My solution to this problem was the following: When the user clicks the Facebook login button, a popup window appears (preferably without the URL input bar). Also, you can pass a 'display' => 'popup' parameter to the getLoginUrl method, as this will use another layout for the Facebook connect page which is more suitable for popup windows. When the Facebook login and permission granting is successful, Facebook redirects you to that URL you don't want to show.

On the page you're redirected to, you should echo a javascript which closes the window. Another solution would be to do this entire connect stuff inside an iframe (though I haven't tested this approach).

Imi thanks for replying, I have passed 'display'=>'popup' parameter to the getLoginUrl method but no popup window appears it opens in full page. – Pankaj Khurana Mar 24 at 11:51 You have to implement the popup window in JavaScript, the 'display' => 'popup' is just to alter the layout of the Facebook connect page to look better in a popup window. – Imi Borbas Mar 24 at 11:53 I have used following code: ');"> ; But after successful authentication it redirects to the search page but in the popup window with session information in the url.

– Pankaj Khurana Mar 24 at 11:59 You shouldn't pass the search URL in the 'next' parameter of getLoginUrl. Instead you may pass an URL which saves the facebook session information and then outputs a to close the window. Additionally, you may include a window.opener.history.

Go(0) to refresh your original browser window, or you can include window.opener.location. Href= to open the search page in the original window. – Imi Borbas Mar 24 at 12:06 You can store that serialized Facebook session in your database, or in your own session, it's up to you, but that session info is required to make authenticated requests towards Facebook API.So my advice is to set the 'next' parameter to a PHP script which does the session saving, and then output that window closing javascript code.

– Imi Borbas Mar 24 at 13:19.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions