Auth0 Home Blog Docs

Facebook Like Subcategories

social-connections

#1

Hi!
I´ve got a question regarding the like object which gets automatically returned by facebook. I activated the permission user_likes and the normalized auth0 user profile gets automatically populated with the users FB likes.
Here is an example of what it looks like:

{
“name”: “XXXX”,
“email”: “XXXX”,
“given_name”: “XXXX”,
“family_name”: “XXXX”,
“gender”: “XXXX”,
“picture”: “XXXX”,
“picture_large”: “XXXX”,
“age_range”: {
“min”: 21
},
“context”: {
“mutual_friends”: {
“data”: ],
“summary”: {
“total_count”: 566
}
},
“mutual_likes”: {
“data”:
{
“name”: “Mittwochenende”,
“id”: “1135269893215695”
},
{
“name”: “The Grand Tour Fanpage”,
“id”: “921430374636255”
},
{
“name”: “Klavierhaus Rudolf Reisinger Himberg”,
“id”: “348030045294302”
},
{
“name”: “Sebastian Kurz”,
“id”: “105151752909840”
},
{
“name”: “Wanted Entertainment”,
“id”: “421162147943348”
},
{
“name”: “Alex Aiono”,
“id”: “182032895154467”
},
{
“name”: “Nicola Nührig”,
“id”: “297134090425913”
},
{
“name”: “Elena Carriere”,
“id”: “1078216688896221”
},
{
“name”: “JJ Watt”,
“id”: “116270911771056”
},
{
“name”: “Proper Tasty”,
“id”: “1737181656494507”
},
{
“name”: “Sportcenter Marco Polo”,
“id”: “112362942155847”
},
{
“name”: “derStandard.at/Games”,
“id”: “178293428957930”
},
{
“name”: “design.stubn”,
“id”: “863125283752533”
},
{
“name”: “Kitzsteinhorn”,
“id”: “132389310392”
},
{
“name”: “McKinsey & Company Karriere”,
“id”: “484121271605387”
},
{
“name”: “Armin Wolf”,
“id”: “360686647276544”
},
{
“name”: “Die Tagespresse”,
“id”: “510425649023025”
},
{
“name”: “PMU Memes”,
“id”: “588353094571146”
},
{
“name”: “Dan Bilzerian”,
“id”: “1423830694520861”
},
{
“name”: “Golfclub Salzburg”,
“id”: “200791373296166”
},
{
“name”: “Goldman Sachs Elevator”,
“id”: “263168127082024”
},
{
“name”: “Spotted: SALK”,
“id”: “492885174083500”
},
{
“name”: “PMU goes “Cup der Privaten” (Spieler, Fans und Freunde)”,
“id”: “269069273157264”
},
{
“name”: “POW”,
“id”: “1537601923145292”
},

Currently only the values name and id get returned. When requesting the likes through FBs Graph API directly it´s possible to specify some subcategories like this fields=likes{name,id,category_list}. Is there any way I can edit the API Call from auth0 so that its possible to receive custom subcategories for the user_likes object?
Kind Regards
Alex


#2

@dev2 The API call from Auth0 cannot be edited, however I am looking into our implementation of the Graph API.


#3

Testing the Facebook Graph API (using the API Explorer), the category seems to be present in calls using v2.3, however deprecated since v2.4 (release in 2015) I couldn’t find any specific Facebook documentation regarding this change - if you have any other information regarding this being available in the latest version of the Graph API, please let me know.


#4