Permalink
Browse files

Adding in wrapper funtion for the Send dialog. This isn't yet support…

…ed on mobile devices but just getting ready.
  • Loading branch information...
1 parent e1909bc commit 7bfb17a21a98b80105388a8edeff5fe68da028ce @GrahamRanson GrahamRanson committed Nov 8, 2012
Showing with 22 additions and 1 deletion.
  1. +22 −1 GGFacebook.lua
View
@@ -162,10 +162,30 @@ function GGFacebook:sendRequest( message, to, title )
end
---- Make a post on a wall.
+--- Send a link to a user.
+-- @param to The user id or username of the person to send it to.
-- @param link The link to send.
-- @param picture The url to a picture to use for the link. Optional, by default one will be pulled from the link.
-- @param name The name of the link. Optional, by default one will be pulled from the link.
+-- @param description The description of the link. Optional, by default one will be pulled from the link.
+function GGFacebook:sendLink( to, link, picture, name, description, to )
+
+ local params = {}
+
+ params.to = to
+ params.link = link
+ params.picture = picture
+ params.name = name
+ params.description = description
+
+ self:showDialog( "send", params )
+
+end
+
+--- Make a post on a wall.
+-- @param link The link to post.
+-- @param picture The url to a picture to use for the link. Optional, by default one will be pulled from the link.
+-- @param name The name of the link. Optional, by default one will be pulled from the link.
-- @param caption The caption of the link. Optional, by default one will be pulled from the link.
-- @param description The description of the link. Optional, by default one will be pulled from the link.
-- @param to The user id or username of the person whose wall wall this will be posted on. Optional, default is the current user.
@@ -177,6 +197,7 @@ function GGFacebook:makePost( link, picture, name, caption, description, to )
params.link = link
params.picture = picture
params.name = name
+ params.caption = caption
params.description = description
self:showDialog( "feed", params )

0 comments on commit 7bfb17a

Please sign in to comment.