-
Notifications
You must be signed in to change notification settings - Fork 1
/
utils.rb
16 lines (14 loc) · 873 Bytes
/
utils.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Facebook page graph API to authenticate to a Facebook Page
FB_PAGE = "https://graph.facebook.com/v6.0/me/messenger_profile?access_token=" + ENV["FB_ACCESS_TOKEN"]
# Facebook Message API
FB_MESSAGE = "https://graph.facebook.com/v6.0/me/messages?access_token=" + ENV["FB_ACCESS_TOKEN"]
# Facebook graph API URL to get user profile
FB_PROFILE = "https://graph.facebook.com/v6.0/"
# Facebook graph API to get profile- fileds to be get.
FB_PROFILE_FIELDS = "?fields=first_name,last_name,profile_pic,locale,gender&access_token=" + ENV["FB_ACCESS_TOKEN"]
# JSON header content
HEADER = { "Content-Type" => "application/json" }
# Wikipedia Logo Image URL
WIKIPEDIA_LOGO = "https://upload.wikimedia.org/wikipedia/en/thumb/8/80/Wikipedia-logo-v2.svg/320px-Wikipedia-logo-v2.svg.png"
# Wikimedia Commons page URL
COMMONS_IMAGE_PAGE_BASE_URL = "https://commons.wikimedia.org/wiki/"