How to find out if a particular song/artist/album belongs to the users favourites while using deezer search API? - deezer

Is there any way to get this information implicitly? Or how can I ask whether object xxx belongs to the users favourite library or not?
It would be great to be able to display whether a particular object belongs to the users favourite library. For example a boolean "isFavorite" property in the objects returned by deezers search API?
The official deezer web player for example shows a fullfilled heart, when a favourite song is within my search result or in a album I opened.
Thanks in advance!
Best,
Frime

You're right, it is implemented on our website player, but will not be in our REST API unfortunately.

Related

Facebook friend location visited

I am developing a travel portal and I dont know if this functionality is possible. Basically, my site provides information of exciting destination to visit. I want to integrate a function I saw on TripAdvisor...the ability to know which of your friends on facebook have visited that destination.
If the user is already logged on to facebook, it automatically returns their profile image in a bubble form. If not,it gives them the option to log on to facebook.
I got this idea from TripAdvisor, and wondering if possible.
Thanks for your assistance.
Regards,
Seyi Osinowo
I guess TripAdvisor is using the /{page-id}.context/friends_tagged_at endpoint for that. Therefore, you'd need to know the Facebook placeId for the specific destination. Theoretically, you can use the Place Search in conjunction with lat/lng and radius for that:
GET graph.facebook.com
/search?
q=coffee&
type=place&
center=37.76,-122.427&
distance=1000
See
https://developers.facebook.com/docs/graph-api/reference/v2.4/page.context/friends_tagged_at
https://developers.facebook.com/docs/graph-api/using-graph-api/v2.4#search

how to get the performers of an event through facebook api?

i want the performers of an event using facebook api. There is no field like performers or artists in events in documentation. How do i get that?
If there's no field available in the API for the data you're looking for, there's no way to fetch that data programmatically
I didn't actually realise there was a 'performers' field for Events on Facebook.com (none of the events i can see have such a field visible), perhaps examining the description field will contain the information you're looking for - https://developers.facebook.com/docs/graph-api/reference/v2.3/event

unemploymet analysis through social media

unemployment analysis through social media in big data concept.In my application i need to retrieve a information of person from Facebook. Like the status of particular person and his degree,studies and current job of the person including previous job if he is not fresher. so which way to get this information. please tell me..
Then my output is like graphical representation. so i have to highlight each degree in the graph. the major objective is to produce the unemployment report.
What you're trying to achive is IMHO no longer possible with the Graph API >= v2.0. You'd need to get the permission of every user to get the data you want. You should have a look at the permission concept Facebook has implemented for its Graph API and see for yourself:
https://developers.facebook.com/docs/facebook-login/overview/v2.2
https://developers.facebook.com/docs/facebook-login/permissions/v2.2
https://developers.facebook.com/docs/facebook-login/access-tokens
First you need to use the Facebook Graph API to retrieve the available data for each user.
https://developers.facebook.com/docs/graph-api
Then use a graphical library to draw what you want (but the question is a little too broad to go further).

How to fetch particular users photos from Instagram

I am trying to fetch a particular user's photo using Instagram, lets say one particular sports team, I am unable to proceed further since the API's seem to return images of all users with similar handle? Is there a way around it?
Let me know please.
I am not sure what you're using, but the Instagram API absolutely provides an end-point for an individual user's photos.
Once you've obtained the user's ID you can use the /users/user-id/media/recent and /users/self/feed endpoints as required. What API calls are you currently using, if not those?

Retrieving and editting location information associated with photos

I need to be able to retrieve Facebook Places associated with a user's photos, and hopefully also link photos to Places. I'm referring to the way you can use the "Add Location" functionality to choose a Place while looking at a photo. I haven't been able to locate where this link is kept either through fql or open graph calls.
There is no Place information in the Photo object.
An Album can have a 'location', but this is only a string, not a Place, and not specific to a photo.
Places can be associated with Posts or Checkins, but as far as I can tell a Photo isn't necessary associated with either of these.
Hope some one can help!
Brendan
It's not possible with the public Graph API to do what you want. You can contact Facebook to see if the functionality exists on their API they have for white-listed apps.
This is an answer not a comment.
The answer is that it is impossible to do that with the public API. You can check with Facebook to see if it's possible to become a partner or get your app white listed to get that functionality.