如何通过Graph API获取Facebook替代名称? [英] How to get Facebook Alternate Name via Graph API?
问题描述
我正在使用Facebook Graph API和Facebook Connect在Wordpress中进行身份验证系统。连接部分完全正常,Facebook图也可以。
I am using the Facebook Graph API and Facebook Connect to make an authentication system in Wordpress. The Connect part goes all ok, the Facebook Graph goes ok as well.
但是:如何获取Facebook替代名称?我在 http://developers.facebook.com/docs/reference/fql搜索文档/ user / ,但没有发现任何痕迹。任何想法?
But: How do I fetch the Facebook Alternate Name? I searched the docs at http://developers.facebook.com/docs/reference/fql/user/, but found no trace of it. Any ideas?
主要的想法是,隐私是一个问题,而且系统比基于姓氏更好的昵称。如果替代名称为空,我只是要求用户输入一个昵称。
The main idea is that privacy is a concern, and the system goes better nickname based than just last name based. If the Alternate Name is empty I just ask the user to enter a nickname.
推荐答案
我认为它没有暴露,当我正在寻找这个,我做了一个工作...
I think that it is not exposed yet, when i was looking for this, i made a work around...
我知道,如果你使用 search_tokens
字段在用户
表中,数组将具有备用名称...如果你有幸运,数组将包含第一个
, middle
, last
和替代
名字,所以,将数组与名称进行比较,并排除知名的名称,另一个是替代名称....
I know that if you use the search_tokens
field at user
table, the array will have the alternate name... If you have luck, the array will contain the first
, middle
, last
, and the alternative
name, so, compare the arrays to the names, and exclude the know names, the other one is the alternative name....
查看此错误:
https://developers.facebook.com/bugs/ 371978199536659 /
这篇关于如何通过Graph API获取Facebook替代名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!