Get Friends Details That Needs Permissions Eg Birthday

Hey Team,

 

I am trying to get Facebook to return to me my friends birthdays. I can get the name and ids but not the birthday. I have added the permissions in Facebook to make them available to my app but do not know how to get it. I have read about an access_token but do not know where to use it. I have been trying the following 

facebook.request( "me/friends", "GET", {access\_token=event.token,"friends\_birthday"} ) 

 

Then trying to retrieve it with 

 if ( not event.isError ) then response = json.decode( event.response ) if fbCommand == GET\_USER\_INFO then local data = response.data statusMessage.textObject.text = data[2].birthday

 

I can get data[2].name to return the Facebook friends name but cannot get the birthday.

 

Thanks for the help

Its all good figured it out

local params = { fields = "name,first\_name,last\_name,birthday" } facebook.request("me/friends", "GET", params)

Its all good figured it out

local params = { fields = "name,first\_name,last\_name,birthday" } facebook.request("me/friends", "GET", params)