Get facebook's friends by name - facebook

I need to obtain my friends of facebook (who are using my app).
Example: I pass a parameter like "Jo" to Graph API, the Facebook must return to me all Friends like Jose, Jon, xxJoxx, etc.
I dont know if that its possible.
Thanks!

You can get all friends with /me/friends and implement your own code with autocomplete to do that. There is also the Search API, but you would need to do a LOT of API calls for an autocomplete functionality: https://developers.facebook.com/docs/graph-api/using-graph-api#search
...also, you don´t just get friends with the Search API.

Related

Facebook Graph API : find friends in a place

I use graph API Facebook to get list of a place I have been there (https://graph.facebook.com/myuserid/feed?with=location) and return place id. And I want to know my facebook friends that ever been there too by place id. Is it possible?
This is not really available in the Graph API. What is possible is to get the friends which have been tagged at a specific place_id.
See
https://developers.facebook.com/docs/graph-api/reference/v2.4/page.context/friends_tagged_at
But even there you have the restriction that
Only friends who use the requesting app will be returned.

Is it possible to get all facebook checkins of user's friend list through facebook api?

I need all of the facebook checkins made by friend list of a user through facebook api. I am not able to get any proper documention for this.
looks like they dont offer it anymore
https://developers.facebook.com/docs/graph-api/reference/v2.1/user/checkins
Late answer, but the Graph query you were looking for is /me/friends?fields=tagged_places.

Get all Facebook friends that like a specific page

is there an easy way to get all Facebook friends that like a specific Facebook page?
I know that there is this site here
https://www.facebook.com/browse/friended_fans_of/?page_id=245323855526590
Where you can type in the page_id and get all friends that like this. But is this also possible with the Graph API? Or would I need to go every friend of a user, using the correct permission and THEN check if the user likes a specific page? I couldn't find an API Endpoint in the API Reference of Facebook

Get list of all my facebook friends who studied in my College using Graph API

I'm trying to figure out how to find how many of my friends and there basic information who has studied in the same school/university i have studies.
I am using https://developers.facebook.com/tools/explorer/ tool of facebook.
I can i put condition in education field.
If i want to get list of friends of friends then how can i get that?
This is not possible using FQL and Facebook Graph API.

How to add facebook friends searchbar in website

I am learning facebook php and javascript sdk. I am trying to create a facebook search friend bar in my app where user types friends name and as user types, the searchbar should display most appropriate result while user is typing. Similar to what facebook search bar does. Is there a social plugin or any other tool available to acieve this task? To achieve this, I tried facebook comments plugin with user_friends permission. When user writes any friends name followed by # sign on comments field, facebook gives most appropriate result. But I dont know how to get what user wrote on comments. Any pointers will be helpful.
FB introduced API versoining. If you are going to create new app it will use version v2 and you will not get full friends list from me/friends.
/me/friends returns the user's friends who are also using your app
In v2.0, the friends API endpoint returns the list of a person's friends who are also using your app. In v1.0, the response included all of a person's friends.There are two key use cases where apps need access to non-app friends: tagging and inviting. In v2.0, we've added the Taggable Friends API and the Invitable Friends API to support these flows.After a person has logged in with v2.0 of Facebook Login, calling /v1.0/me/friends and/v2.0/me/friends` will both result in the v2.0 behaviour - both calls will return the set of the person's friends who also use the app.
Read this documentation
https://developers.facebook.com/docs/apps/upgrading
Either you can create this by yourself (not too much of complex). You have access to the friendlist, so you can get all the friends with /me/friends. You can store them (their name/info) into a variable in your application and implement search. This will make your facebook api concepts better.
Or there are many friend selectors plugin/codes that you can integrate in your application. But you'll have to modify them accordingly since you dont want to show a pre-populated list of friends instead you want to implement search.
I've used mbrevoort's multi-friend selector in my applications.
But if you just want to implement search, implementing on your own would be really easy and less complicated!