forked from huandu/facebook
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconst.go
35 lines (30 loc) · 937 Bytes
/
const.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// A facebook graph api client in go.
// https://github.com/huandu/facebook/
//
// Copyright 2012, Huan Du
// Licensed under the MIT license
// https://github.com/huandu/facebook/blob/master/LICENSE
package facebook
import (
"regexp"
)
const (
GET Method = "GET"
POST Method = "POST"
DELETE Method = "DELETE"
)
var (
// Maps aliases to Facebook domains.
domainMap = map[string]string{
"api": "https://api.facebook.com/",
"api_video": "https://api-video.facebook.com/",
"api_read": "https://api-read.facebook.com/",
"graph": "https://graph.facebook.com/",
"graph_video": "https://graph-video.facebook.com/",
"www": "https://www.facebook.com/",
}
// checks whether it's a video post.
regexpIsVideoPost = regexp.MustCompile(`/^(\/)(.+)(\/)(videos)$/`)
// default facebook session.
defaultSession = Session{}
)