How to get user Interests?

This is not a duplicate of How can I get the interests of my friend through facebook api?. user_interests permission (to access /me/interests) is useless (if not deprecated) Facebook feature that hardly ever returns any data.

Instead, I am referring to the data aggregated by Facebook at this page:

These are all user likes grouped into categories like "Music", "Books", "TV Shows", etc. Generally, user likes can be retrieved through /me/likes. However, the latter query returns a rather vivid array of categories.

Is there a way to get user likes categorised into the same generic categories like Facebook does?

Answers


https://developers.facebook.com/docs/reference/api/user/:

The User object has the following connections:

books: The books listed on the user's profile.

games: Games the user has added to the Arts and Entertainment section of their profile.

movies: The movies listed on the user's profile.

music: The music listed on the user's profile.

television: The television listed on the user's profile.


The fields favorite_athletes and favorite_teams are deprecated, though. Not sure, if there will be any replacement for these analog to the above connections – or if users are just supposed to normally “like” the fan pages of athletes/teams in the future.


My approach to this issue is to process the API data within my application as such:

'Books' => array('Fictional Character', 'Writer', 'Book', 'Author', 'Book Store', 'Library', 'Magazine'),
'Films' => array('Actor/Director', 'Movie', 'Producer', 'Studio', 'Movie Theater', 'TV/Movie Award', 'Fictional Character', 'Movies/Music'),
[..]

e.g., if user likes "Writer" or "Book", I assign the like to "Books" category.

However, this solution is not ideal as Facebook might change category names, add new names, etc.


Need Your Help

How unique is a GCM registration ID for an Android app with multiple accounts?

android google-cloud-messaging

Let's say, for example, a device has an app with 2 accounts signed in (a typical use case of having multiple gmail accounts on the same device). Let's say we have a Personal account and a Work acco...

Creating global object in Rails automatically

ruby ruby-on-rails-3 oop

I have a library with a class that, when created, will automatically scrape data from a series of FTP servers periodically. It is threaded and you can simply call a 'results' method to see the resu...