summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilbert Gonzales <gilbert@lindenlab.com>2013-05-31 18:13:20 -0700
committerGilbert Gonzales <gilbert@lindenlab.com>2013-05-31 18:13:20 -0700
commit422e741e18339c22c37c9373e8bb61de09a8216c (patch)
tree3b84926efb65930b90b14b189975409bc5c17d00
parent0c0f4edb0026b1695655512ebed3a5508919a9b7 (diff)
parentbbac06deb72e036b60a73bfb0e50d8f6a6a0fe86 (diff)
merge
-rw-r--r--indra/newview/llfacebookconnect.cpp11
-rw-r--r--indra/newview/llfacebookconnect.h1
2 files changed, 11 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++;
diff --git a/indra/newview/llfacebookconnect.h b/indra/newview/llfacebookconnect.h
index 8886630222..faa60b0f34 100644
--- a/indra/newview/llfacebookconnect.h
+++ b/indra/newview/llfacebookconnect.h
@@ -47,6 +47,7 @@ public:
void loadFacebookFriends();
void postCheckinMessage(const std::string& message, const std::string& link, const std::string& name, const std::string& caption, const std::string& description, const std::string& picture);
+ void sharePhoto(const std::string& image_url, const std::string& caption);
void clearContent();
void storeContent(const LLSD& content);