File tree Expand file tree Collapse file tree 1 file changed +125
-0
lines changed Expand file tree Collapse file tree 1 file changed +125
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,131 @@ license: [MIT License](https://github.com/mientjan/typescript-facebook-definitio
7
7
8
8
*/
9
9
10
+
11
+ export interface IFacebookAPIMoviesResponseData {
12
+ category :string ;
13
+ created_time : string ;
14
+ id :string ;
15
+ name :string ;
16
+ }
17
+
18
+ // api(/me/movies)
19
+ export interface IFacebookAPIMoviesResponse {
20
+ data : IFacebookAPIMoviesResponseData [ ] ;
21
+ paging :{
22
+ next :string ;
23
+ } ;
24
+ }
25
+ ;
26
+
27
+ export interface IFacebookAPIMusicListensResponseData {
28
+ id : string ;
29
+ from : {
30
+ name : string ;
31
+ id : string ;
32
+ } ;
33
+ start_time : string ;
34
+ end_time : string ;
35
+ publish_time : string ;
36
+ application : {
37
+ name : string ;
38
+ namespace : string ;
39
+ id : string ;
40
+ } ;
41
+ data : {
42
+ song : {
43
+ id : string ;
44
+ url : string ;
45
+ type : string ;
46
+ title : string ;
47
+ } ;
48
+ album : {
49
+ id : string ;
50
+ url : string ;
51
+ type : string ;
52
+ title : string ;
53
+ } ;
54
+ } ;
55
+ type : string ; // music.listens
56
+ no_feed_story : bool ;
57
+ likes : {
58
+ count : number ;
59
+ can_like : bool ;
60
+ user_likes : bool ;
61
+ } ;
62
+ comments : {
63
+ count : number ;
64
+ can_comment : bool ;
65
+ comment_order : string ; // chronological
66
+ } ;
67
+ }
68
+ ;
69
+
70
+ // api(/me/music.listens)
71
+ export interface IFacebookAPIMusicListensResponse {
72
+ data :IFacebookAPIMusicListensResponseData [ ] ;
73
+
74
+ paging :{
75
+ next : string ;
76
+ } ;
77
+
78
+ }
79
+
80
+ // api(/me)
81
+ export interface IFacebookAPIUserResponse {
82
+ id : string ;
83
+ name : string ;
84
+ first_name : string ;
85
+ last_name : string ;
86
+ link : string ;
87
+ username : string ;
88
+ location : {
89
+ id : string ;
90
+ name : string ;
91
+ } ;
92
+ work : {
93
+ employer : {
94
+ id : string ;
95
+ name : string ;
96
+ } ;
97
+ position : {
98
+ id : string ;
99
+ name : string ;
100
+ } ;
101
+ start_date : string ;
102
+ end_date : string ;
103
+
104
+ projects : {
105
+ id : string ;
106
+ name : string ;
107
+ start_date : string ;
108
+ end_date : string ;
109
+ } [ ] ;
110
+
111
+ } [ ] ;
112
+
113
+ education : {
114
+ school : {
115
+ id : string ;
116
+ name : string ;
117
+ } ;
118
+
119
+ type : string ;
120
+ } [ ] ;
121
+
122
+ gender : string ;
123
+ timezone : number ;
124
+ locale : string ;
125
+
126
+ languages : {
127
+ id : string ;
128
+ name : string ;
129
+ } [ ] ;
130
+
131
+ verified : bool ;
132
+ updated_time : string ;
133
+ }
134
+
10
135
interface FBUserAuthenticate {
11
136
// Current status of the session
12
137
status : string ; // connected or not_authorized
You can’t perform that action at this time.
0 commit comments