diff options
author | Cho <cho@lindenlab.com> | 2013-06-01 01:55:40 +0100 |
---|---|---|
committer | Cho <cho@lindenlab.com> | 2013-06-01 01:55:40 +0100 |
commit | bbac06deb72e036b60a73bfb0e50d8f6a6a0fe86 (patch) | |
tree | 7d0fa7dc502638e8fda503a20627ad1fe8bb4552 /indra/newview/llfacebookconnect.cpp | |
parent | 9497a70eb2b3d47d1bfd83ff34bb60d8f490644d (diff) |
added LLFacebookConnect::sharePhoto() for ACME-467
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++; |