验证是否存在Facebook帐户-不想通过FB登录 [英] Authenticating if a Facebook account exists - don't want to go through FB login

查看:115
本文介绍了验证是否存在Facebook帐户-不想通过FB登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想找出一种在表单上对Facebook帐户进行身份验证的方法,而不必进行Facebook登录和其他操作.

I'd like to figure out a way to authenticate a facebook account on a form, without having to go into facebook login and whatnot.

所以我的问题是,仍然有需要检查的地方,我在想也许是使用正则表达式的标记,我可以在其中检查是否存在Facebook计数,如果有,则执行某些操作.

So my question, is there anyway to check, I was thinking maybe the markup with regex, where I could check to see if a facebook count exists, and if so do something.

感谢您的建议.

推荐答案

您可以使用Graph API检查该用户的对象是否存在. (例如, https://graph.facebook.com/btaylor ).

You can use the Graph API to check if an object for said user exists. (e.g., https://graph.facebook.com/btaylor).

参考页:

或者,具有以下内容的人和信息页 可以使用用户名来获取用户名 用户名作为ID.由于平台"是 上面页面的用户名, https://graph.facebook.com/platform 将返回您的期望.全部 响应是JSON对象.

Alternatively, people and pages with usernames can be fetched using their username as an ID. Since "platform" is the username for the page above, https://graph.facebook.com/platform will return what you expect. All responses are JSON objects.

...尽管我不太确定如何建立关系用户名<-> ID.首选访问权限是通过ID: https://graph.facebook.com/220439

...though I'm not really sure how the relation username <-> ID is established. The preferred access is through ID: https://graph.facebook.com/220439

希望这会有所帮助.

这篇关于验证是否存在Facebook帐户-不想通过FB登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆