How to get User id by username in Facebook Graph API v2.1

霸气de小男生 提交于 2019-11-29 11:34:33

This is intentional for privacy reasons. If you would be able to get the (real) User ID with the unique username, there would be no need to invent App Scoped ID at all.

If you make a call to /me/username, it will return the following error:

(#803) Cannot query users by their username

Btw, you cannot even get the username since v2.0, only the real name.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!