It is currently Tue Sep 07, 2010 9:22 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Recognising registered user (from another site)
PostPosted: Thu Jul 29, 2010 12:22 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Feb 28, 2007 9:13 am
Posts: 736
Location: Edinburgh
Yo all,

Having returned from holiday I'm curious about something Facebook have started doing, and would like to implement a similar service on my own website. It's an HTML/server question and, though I've asked it on a more suitable forum, I think somebody here may know the answer.

If you're a registered user of Facebook, you can comment on something on another website using your FB identity. Your FB identity seems to be automatically recognised; the FB commenting stuff appears without you doing anything. If you post a comment, it gets added to that site AND to your Facebook wall.

I don't understand how they do this. How do they know it's you looking at this other website? Is it done by your IP address or the new client-side storage thing?

I ask because I'd like to do something similar for my own site - ie allowing registered users of my site to comment on things on other websites.

Thanks for reading,
Seymour.

_________________
JACK WEBB: "Coding in C is like sculpting a statue using only sandpaper. You can do it, but the result wouldn't be any better. So why bother? Just use the right tools and get the job done."


Top
 Profile  
 
 Post subject: Re: Recognising registered user (from another site)
PostPosted: Thu Jul 29, 2010 9:41 am 
Offline
Enthusiast
Enthusiast

Joined: Fri Oct 23, 2009 2:33 am
Posts: 332
Location: UK
Quote:
How do they know it's you looking at this other website?


If you are using the PC that you used to register with FB, then may be they saved a cookie on your system for this purpose?

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
 
 Post subject: Re: Recognising registered user (from another site)
PostPosted: Thu Jul 29, 2010 4:29 pm 
Offline
Enthusiast
Enthusiast

Joined: Fri Apr 25, 2003 4:57 pm
Posts: 496
I'm guessing that (as IdeasVacuum said) it is a cookie entry in your browsers cookie file that identifies you, but since cookies are supposed to be readable only from the domain that created it, I guess the form that allows you to create the post actually executes from the FB site and is embedded in your website's pages.

_________________
Ta - N


Top
 Profile  
 
 Post subject: Re: Recognising registered user (from another site)
PostPosted: Thu Jul 29, 2010 4:40 pm 
Offline
User
User
User avatar

Joined: Sun Mar 18, 2007 2:26 pm
Posts: 63
Location: Munich, Germany
All Facebook boxes on other sites are in fact embedded via iframe.


Top
 Profile  
 
 Post subject: Re: Recognising registered user (from another site)
PostPosted: Thu Jul 29, 2010 8:51 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Feb 28, 2007 9:13 am
Posts: 736
Location: Edinburgh
Ah! An iFrame... of course!

_________________
JACK WEBB: "Coding in C is like sculpting a statue using only sandpaper. You can do it, but the result wouldn't be any better. So why bother? Just use the right tools and get the job done."


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye