File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ public static void addPrivateShoppingMenu(String id) {
98
98
.addObject ()
99
99
.put ("type" , "web_url" )
100
100
.put ("url" , "https://" + PRIVATE_SHOPPING_URL )
101
- .put ("title" , "Book Appointment Now!" )
101
+ .put ("title" , "Book Shopping Appointment Now!" )
102
102
.put ("webview_height_ratio" , "full" );
103
103
104
104
log .debug ("Post Payload for Private Shopping Menu" + json .toPrettyString ());
@@ -126,11 +126,13 @@ public static void addPrivateShoppingMenu(String id) {
126
126
}
127
127
128
128
/**
129
- * Send our private Shopping URL as a Messenger Button
129
+ * Send our private Shopping URL as a Messenger Button. Leave here for now,
130
+ * seems cleaner to let Bot send the URL instead of a button.
130
131
*
131
132
* @param id of the recipient
132
133
* @return true if successfully sent
133
134
*/
135
+ @ Deprecated
134
136
public static boolean sendPrivateBookingURL (String id ) {
135
137
HttpURLConnection connection = null ;
136
138
try {
Original file line number Diff line number Diff line change @@ -24,3 +24,13 @@ curl -X POST -H "Content-Type: application/json" -d '{
24
24
}
25
25
]
26
26
}' "https://graph.facebook.com/v20.0/me/messenger_profile?access_token="
27
+
28
+
29
+ curl -X POST -H "Content-Type: application/json" -d '{
30
+ "greeting": [
31
+ {
32
+ "locale":"default",
33
+ "text":"Hello {{user_first_name}}, Copper Bot is here to assist you with product and store questions and you can always ask for Person"
34
+ }
35
+ ]
36
+ }' "https://graph.facebook.com/v2.6/me/messenger_profile?access_token=
You can’t perform that action at this time.
0 commit comments