If I enable migrations “July 2013 Breaking Changes” of my app, then search user by email wouldn't work

爱⌒轻易说出口 提交于 2019-12-03 16:23:33

As 林果皞 said. This is a bug in the graph API. I filed a bug here: https://developers.facebook.com/bugs/335452696581712

have you try FQL?

SELECT uid,username,first_name, middle_name, pic,pic_small, pic_big, pic_square, last_name,name,email,birthday,birthday_date,contact_email,current_address,current_location,education,hometown_location, languages, locale,profile_url,sex,work FROM user where contains('youremail@example.com')

Search by email works fine to me (Access token just granted basic permissions enough):

https://developers.facebook.com/tools/explorer?method=GET&path=%2Fsearch%3Fq%3Dlimkokhole%40gmail.com%26fields%3Dname%2Clink%2Ceducation%2Cid%2Cwork%2Cabout%2Cpicture%26limit%3D2%26type%3Duser

Update:

Recently Graph API explorer app already enabled "July 2013 Breaking Changes". So the example i've shown above whouldn't work anymore.

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