summaryrefslogtreecommitdiff
path: root/protocols/Facebook/src/http.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Facebook/src/http.cpp')
-rw-r--r--protocols/Facebook/src/http.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/Facebook/src/http.cpp b/protocols/Facebook/src/http.cpp
index aa2d4a5c5e..88a73c4006 100644
--- a/protocols/Facebook/src/http.cpp
+++ b/protocols/Facebook/src/http.cpp
@@ -107,6 +107,9 @@ AsyncHttpRequest* FacebookProto::CreateRequest(const char *szName, const char *s
szLocale = "en";
pReq << CHAR_PARAM("locale", szLocale);
+ if (!m_szAuthToken.IsEmpty())
+ pReq->AddHeader("Authorization", "OAuth " + m_szAuthToken);
+
pReq->AddHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8");
unsigned int id;