how do i check if username is taken on another website?

2014-03-14 11:53 pm
i need to know how i can put on my website a place to check if user name is taken from another website.

lets says you come to my site , type in a username and check to see if it is taken, but you are checking if it is taken on a different site not mine.

when they click summit i don't not want the information to go the the other website, i want i to go to me.

回答 (2)

2014-03-15 12:03 am
✔ 最佳答案
In order to know if a username is taken on a site, some piece of code somewhere needs to do a database lookup to determine if the username is in the database.
Since you (presumably) don't have access to the sites database, you can't do it without the help of the other site.

Some sites will publish an API that will let you ask them to query their database. I believe Facebook allows this. Probably most large social media sites do. But most sites won't do this. If the site you are targeting doesn't provide an API for this, there really isn't anything you can do. Oh... some sites registration page will have a way to determine if a user name is in use before completing a registration. You might be able to script hitting that, and look at the results...messy stuff though, and apt to break every time the site does a redesign.
2015-01-04 7:07 am
if a profile/page use one URL name, later got disabled due to fake/unable to show ID card copy to facebook staff. URL name will only be released and can only be taken by everyday logging in facebook.com/username

and it may be available after 6-9 months minimum.


收錄日期: 2021-05-04 02:51:14
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20140314155317AAq3tYX

檢視 Wayback Machine 備份