Reputation: 3271
I am using facebook connect in one of my website. For this i have used php sdk library.
I am using following code:
<?php
require APP_PHYSICAL_PATH.'includefiles.php';
$loginUrl = $facebook->getLoginUrl(
array(
'req_perms' => 'email,user_location',
'next'=>APP_URL.'views/search.php?validate=true'
)
);
?>
<a href="<?php echo $loginUrl; ?>">
<img src="http://static.ak.fbcdn.net/rsrc.php/zB6N8/hash/4li2k73z.gif">
</a>
The problem is that after successful authentication it goes to search page but it shows session information in the url. For e.g.
http://mydomain/views/search.php?validate=true&session={"session_key"%1A"4.7REQluh3EVBGKiA5m8cNlg__.6600.1700968000-900001178893860"%
I want that this session information should not be visible. Is there any way to accomplish this?
Please help me on this
Thanks
Pankaj
Upvotes: 0
Views: 1107
Reputation: 3703
My solution to this problem was the following:
Another solution would be to do this entire connect stuff inside an iframe (though I haven't tested this approach).
Upvotes: 2