English 中文(简体)
Facebook connect
原标题:
  • 时间:2009-11-09 16:05:27
  •  标签:
  • facebook

If I plug in the facebook connect into my website, How can I prevent double signups?

Lets say I have a user that s already signed up to my site but he clicked the connect with facebook, is there a way to track it and redirect the login to his already existing account?

问题回答

As long as the user doesn t long in explicitly to your side there s no way as FB won t give you the mail address which is the only thing you might probably use as an unique identifier (while people use different mail addresses for different services)

So your only way to do this is by detecting when you get a FB id while you have a valid session from your system.

Everything else depends on your environment.

You shall check against the facebook user id since as johannes said, facebook won t let you access the user s email by default.

Also, as the user can change his or her email account, you could get account duplicates. Facebook Id is the safe one.





相关问题
Facebook Connect login dialog not working

I am using Facebook Connect for iPhone and following the official instructions. I use the following code to display the login dialog: FBLoginDialog* dialog = [[[FBLoginDialog alloc] initWithSession:...

Facebook App Profile Tab is Empty ... No Content Displayed?

I can view my application via the http://apps.facebook.com/myapplication/ link and the content shows up correctly. I also added the application as a tab to a facebook page. However, when viewing the ...

Facebook Platform error: "Object cannot be liked"

I m working on a Facebook Application that generates wall posts. In testing these posts, I ve discovered that the Facebook Platform action of "liking" a post is failing. The specific error message ...

how to call showPermissionsDialog() in php (facebook api)?

I was reading over the documentation yet I could not figure out how to call Facebook.showPermissionsDialog() in php include_once ./facebook-platform/php/facebook.php ; $facebook = new Facebook(my ...

Facebook connect

If I plug in the facebook connect into my website, How can I prevent double signups? Lets say I have a user that s already signed up to my site but he clicked the connect with facebook, is there a ...

热门标签