Difference between search results from the deezer api and the web site - deezer

When performing a search using the Deezer API, the results obtained are the not the same as the ones obtained when performing the search from the Deezer web site.
Is there a way to obtain the same results as the web site using the API?

Search results are localized based on the current user's country (IP based).
If you query the website and the API from the same location, you'll get the same results.
You can override the country by passing a user token to the request to make sure you always get the same results.

Related

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 search displaying users in Facebook but not in graph [duplicate]

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.

No UPC information in the Spotify Apps API search results?

I'm trying to match the album information retrieved from an external source to the Spotify data. The best way would be to match them by UPC. But unlike Spotify Metadata API search results, Spotify Apps API search results don't contain the UPC code information. Is that intentional? Is there any better way of obtaining the UPC code information for a specific album inside the Spotify Apps then using the Metadata API?
At the moment, unfortunately not - the client doesn't deal with UPC information at all, so it isn't in the client's search results.

How can I obtain a list of domains for a page/user/app using the Graph API?

I'm trying to use Facebook's Graph API to grab a user's insights data, and display it in an admin panel for them, as a part of their custom CMS.
There are a few steps to my Facebook integration:
1. Authenticate
2. Get a list of pages, applications, and domains for the user
3. Get insights data for each page, application and domain
All of the above are working, but I can't find a way to list all the domains a user has. I'm using https://graph.facebook.com/me/accounts to get the list of accounts for the user. This is returning all the Pages and Applications, but no Domains.
I have looked all over Facebook's docs, and can't find any reference to a method for retrieving a list.
I have tried https://graph.facebook.com/domains, https://graph.facebook.com/me/domains, https://graph.facebook.com/domain, and https://graph.facebook.com/me/domain - to no avail. https://graph.facebook.com/domain and https://graph.facebook.com/domains are valid, but are only useful if you know the domain.
So, the question: Is there a way to obtain a list of domains for a user using the Graph API?
Thanks
try this Graph API call: https://graph.facebook.com/fql?q=SELECT domain_name, domain_id FROM domain WHERE domain_id in ( SELECT domain_id FROM domain_admin WHERE owner_id=me())&access_token=VALIDUSERACCESSTOKENOFTHEOWNEROFTHEDOMAIN

Can you obtain friends' postcodes via the facebook api?

Does the facebook api expose friends postcodes? Ie is it possible to make a call to the api and have it return a list of postcodes of your friends which have address information listed under the "friends only" privacy setting?
In short no. Very few people have their addresses on Facebook and the graph API does not expose those fields anyway, just like it does not expose mobile phone numbers.
I recently came up with a workaround for an application of my own. Through Facebook permissions, pull the users location (City, State) out of his/her basic information. With that, you can make an HTTP request to the Google Geocoding API. Make sure to pass the users City and State, and in return, the API will spit out a JSON encoded response containing a handful of useful data -- including the postal code that you're looking for.
See:
http://code.google.com/apis/maps/documentation/geocoding/#GeocodingRequests