I need to search facebook user by using his name or mail-id just like how it works in facebook search box. Any API's available for that.
Thanks in advance.
我认为您应该先查看有关 android 的 facebook 开发人员文档以及 SDK 中提供的示例
https://developers.facebook.com/docs/mobile/android/build/
它将帮助您了解如何使用 facebook-android-sdk
这是代码
Bundle params = new Bundle();
params.putString("q", "Your Name");
params.putString("type", "user");//fix
String resp = fb.request("search", params, "GET");//call the request function of android sdk 2.X, ensure you have well setup the library and logged
您将在此链接获得大量搜索选项:https ://developers.facebook.com/docs/reference/api/ 。在此页面上,您需要向下滚动一点,直到找到Searching标题。
我个人不知道有任何使用电子邮件地址进行搜索的规定。