From ecf32d3b6212b54974cce4fe8fb6c2b439ed4d57 Mon Sep 17 00:00:00 2001 From: DmitryZagorulko Date: Mon, 3 Sep 2018 11:13:35 +0300 Subject: [PATCH] improve optional ProfileFields --- .gitignore | 1 + messenger.go | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index ac5a2b7..eb82713 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ # Folders _obj _test +.idea # Architecture specific extensions/prefixes *.[568vq] diff --git a/messenger.go b/messenger.go index ab049e2..ddb00d6 100644 --- a/messenger.go +++ b/messenger.go @@ -17,7 +17,8 @@ const ( // Used in the form: https://graph.facebook.com/v2.6/?fields=&access_token= ProfileURL = "https://graph.facebook.com/v2.6/" // ProfileFields is a list of JSON field names which will be populated by the profile query. - ProfileFields = "first_name,last_name,profile_pic,locale,timezone,gender" + //ProfileFields = "first_name,last_name,profile_pic,locale,timezone,gender" + ProfileFields = "first_name,last_name,profile_pic" // SendSettingsURL is API endpoint for saving settings. SendSettingsURL = "https://graph.facebook.com/v2.6/me/thread_settings" )