diff options
| author | Merov Linden <merov@lindenlab.com> | 2013-05-31 19:09:33 -0700 |
|---|---|---|
| committer | Merov Linden <merov@lindenlab.com> | 2013-05-31 19:09:33 -0700 |
| commit | ad7dc22ad5d48d703c2cf20fb77ff69dcf3ae820 (patch) | |
| tree | df2df2ae9a026d7922aef7b908b8c23c05a4474e /indra/newview/llfacebookconnect.cpp | |
| parent | e17b9de293084da0de0ce12290c9ae1939184337 (diff) | |
| parent | 422e741e18339c22c37c9373e8bb61de09a8216c (diff) | |
Pull merge from viewer-fbc
Diffstat (limited to 'indra/newview/llfacebookconnect.cpp')
| -rw-r--r-- | indra/newview/llfacebookconnect.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/indra/newview/llfacebookconnect.cpp b/indra/newview/llfacebookconnect.cpp index 86da748f0f..5013a5cb40 100644 --- a/indra/newview/llfacebookconnect.cpp +++ b/indra/newview/llfacebookconnect.cpp @@ -211,7 +211,6 @@ public: } }; - /////////////////////////////////////////////////////////////////////////////// // LLFacebookConnect::LLFacebookConnect() @@ -296,6 +295,16 @@ void LLFacebookConnect::postCheckinMessage(const std::string& message, const std LLHTTPClient::post(getFacebookConnectURL("/share/wall"), body, new LLFacebookPostResponder()); } +void LLFacebookConnect::sharePhoto(const std::string& image_url, const std::string& caption) +{ + LLSD body; + body["image"] = image_url; + body["caption"] = caption; + + // Note: we can use that route for different publish action. We should be able to use the same responder. + LLHTTPClient::post(getFacebookConnectURL("/share/photo"), body, new LLFacebookPostResponder()); +} + void LLFacebookConnect::storeContent(const LLSD& content) { mGeneration++; |
