Facebook graph api search displaying users in Facebook but not in graph [duplicate] - facebook

I'm using Facebook graph Api to search users and data that i get is kinda different from that i get from Facebook UI. For example search response of User interface is friends, mutual friends and other related data in first. How can i query to get related data for current user ( i.e friends and mutual friends in first place).
Here is query that i'm using to search users.
https://graph.facebook.com/v2.5/search?fields=id,name,picture.type(normal)&limit=50&q={q}&type=user&access_token={token}

and data that i get is kinda different from that i get from Facebook UI
That’s because those are two completely different things.
The search functionality offered via the UI is called Graph Search. But the powerful possibilities that offers are not exposed via API. (To protect user privacy, and keep apps from doing extended user profiling via that data.)
Searching via API is limited to what is listed here: https://developers.facebook.com/docs/graph-api/using-graph-api/#search
That’s not much – but it’s all you get.

Related

Searching for a user's posts in facebook groups

Searching for a user's posts in facebook groups. I am a newby on web programming, and I am trying to programatically get hold of all my posts in various groups. I am using plain HTTP queries, and also the graph api.
Using plain HTTP present a problem as I seem to have to phrase the query differently with some groups, and am even required to log in for some.
Using the graph api seems very limited since V2.8 only is allowed with new apps, and most of the functionality I need is only available in lower (V2.3) versions. And also I am NOT admin in any of the groups.

Graph API search people by Phone Number

I want to search people by using phone number. If you open Facebook and type mobile number on search bar you get user that's belong to it. But I want to do with Graph API. There is option for search but it's provide only username.
search/type=user&q=username
search/type=user&q=03001234567 // (#200) Application does not have the capability to make this API call
How can I search users by using Mobile numbers.
How can I search users by using Mobile numbers.
You can’t.
The search functionality provided via the UI, and the API search are two different things.
I assume Facebook is deliberately not exposing all the functionality via API, because that would just be too powerful a tool for all sorts of data mining.

Facebook Graph api users search

I'm using Facebook graph Api to search users and data that i get is kinda different from that i get from Facebook UI. For example search response of User interface is friends, mutual friends and other related data in first. How can i query to get related data for current user ( i.e friends and mutual friends in first place).
Here is query that i'm using to search users.
https://graph.facebook.com/v2.5/search?fields=id,name,picture.type(normal)&limit=50&q={q}&type=user&access_token={token}
and data that i get is kinda different from that i get from Facebook UI
That’s because those are two completely different things.
The search functionality offered via the UI is called Graph Search. But the powerful possibilities that offers are not exposed via API. (To protect user privacy, and keep apps from doing extended user profiling via that data.)
Searching via API is limited to what is listed here: https://developers.facebook.com/docs/graph-api/using-graph-api/#search
That’s not much – but it’s all you get.

Graph API vs own app home feed

I'm trying to fetch the endpoint /me/home from the Facebook graph API v2.1.
Using the Graph API Explorer tool, I get good results that look like what the facebook mobile app displays. But when I switch to my app and simulate the exact same call with the exact same permissions, the results are different and include a lot of non relevant posts (such as "ARandomFriend liked a link").
The only difference beetween the two calls is the access token (same scope, same permissions, same user). My guess is that facebook voluntarily returns a less relevant feed to third party apps so that people can't build apps that can compete with them.
But maybe I'm wrong, does anyone know something about this ?
This is similar to
Some posts not visible on the feed through Graph API /me/home
and
Facebook SDK for .NET and Graph API Explorer news feed mismatch
The reason is Facebook "scores" nodes to derive the most "Top Story". Low scoring nodes are by default not visible. You can force all nodes with
/me/home.filter(owner)<some_filters like fields requests>
There is no documentation on WHY this actually works, but it does. You can also force all nodes that are Likes or Comments by doing the following
me/posts?fields=likes.filter(stream),comments.filter(stream)

Can OrderedFriendsListInitialData Be Accesed Via API

Hi I'm a web developer and a client has asked me if I can build an app that displays the information contained inside the OrderedFriendsListInitialData. This information is found when you view the source code on your Facebook news feed.
The Facebook Terms of Service is very clear about NOT scraping Facebook pages, so I would need to access the data via the API. The idea is to allow users to see this list in a convenient way though a Facebook app.
Also, if this is NOT possible, then would Facebook make an exception to scraping this singular element for the sole purpose of displaying it to the user it was generated for.
I.e. not showing it to other people, only scraping the data to show it directly to the user without saving it to any database.
There is no API available to return the coefficient-ranked friends list - if your app needs to organise friends based on the user's relationship to the friends, a popular method to do this is to examine the user's photo tags and/or news feed and likes to choose friends most closely associated with the user