| 30 |
30 |
| 31 #include "http.h" |
31 #include "http.h" |
| 32 #include "id.h" |
32 #include "id.h" |
| 33 #include "mqtt.h" |
33 #include "mqtt.h" |
| 34 |
34 |
| 35 #define FB_API_HOST "https://api.facebook.com" |
35 #define FB_API_AHOST "https://api.facebook.com" |
| 36 #define FB_API_BHOST "https://b-api.facebook.com" |
36 #define FB_API_BHOST "https://b-api.facebook.com" |
| 37 #define FB_API_GHOST "https://graph.facebook.com" |
37 #define FB_API_GHOST "https://graph.facebook.com" |
| |
38 #define FB_API_WHOST "https://www.facebook.com" |
| 38 #define FB_API_AGENT "Facebook App / " PACKAGE " / " VERSION |
39 #define FB_API_AGENT "Facebook App / " PACKAGE " / " VERSION |
| 39 #define FB_API_KEY "256002347743983" |
40 #define FB_API_KEY "256002347743983" |
| 40 #define FB_API_SECRET "374e60f8b9bb6b8cbb30f78030438895" |
41 #define FB_API_SECRET "374e60f8b9bb6b8cbb30f78030438895" |
| 41 |
42 |
| 42 #define FB_API_CONTACTS_COUNT "200" |
43 #define FB_API_CONTACTS_COUNT "200" |
| 43 |
44 |
| 44 #define FB_API_URL_AUTH FB_API_BHOST "/method/auth.login" |
45 #define FB_API_URL_AUTH FB_API_BHOST "/method/auth.login" |
| 45 #define FB_API_URL_GQL FB_API_GHOST "/graphql" |
46 #define FB_API_URL_GQL FB_API_GHOST "/graphql" |
| 46 #define FB_API_URL_PARTS FB_API_GHOST "/participants" |
47 #define FB_API_URL_MESSAGES FB_API_WHOST "/messages" |
| 47 #define FB_API_URL_THRDS FB_API_GHOST "/me/threads" |
48 #define FB_API_URL_PARTS FB_API_GHOST "/participants" |
| 48 #define FB_API_URL_TOPIC FB_API_HOST "/method/messaging.setthreadname" |
49 #define FB_API_URL_STICKER FB_API_WHOST "/stickers/asset/" |
| |
50 #define FB_API_URL_THRDS FB_API_GHOST "/me/threads" |
| |
51 #define FB_API_URL_TOPIC FB_API_AHOST "/method/messaging.setthreadname" |
| 49 |
52 |
| 50 #define FB_API_QRYID_CONTACTS "10153746900696729" |
53 #define FB_API_QRYID_CONTACTS "10153746900696729" |
| 51 #define FB_API_QRYID_CONTACTS_AFTER "10153746900731729" |
54 #define FB_API_QRYID_CONTACTS_AFTER "10153746900731729" |
| 52 #define FB_API_QRYID_THREAD_INFO "10153813976871729" |
55 #define FB_API_QRYID_THREAD_INFO "10153813976871729" |
| 53 #define FB_API_QRYID_THREAD_LIST "10153813976891729" |
56 #define FB_API_QRYID_THREAD_LIST "10153813976891729" |
| |
57 #define FB_API_QRYID_XMA "10153896863741729" |
| 54 |
58 |
| 55 #define FB_TYPE_API (fb_api_get_type()) |
59 #define FB_TYPE_API (fb_api_get_type()) |
| 56 #define FB_API(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), FB_TYPE_API, FbApi)) |
60 #define FB_API(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), FB_TYPE_API, FbApi)) |
| 57 #define FB_API(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), FB_TYPE_API, FbApi)) |
61 #define FB_API(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), FB_TYPE_API, FbApi)) |
| 58 #define FB_API_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), FB_TYPE_API, FbApiClass)) |
62 #define FB_API_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), FB_TYPE_API, FbApiClass)) |