In the FaceBook developer for my app I have -
Website with Facebook Login
Native iOS App
Both filled in, in the website with FB login section, I have the page I redirect to in the “Site URL” box.
Then i my code -
local redirectUri = "http://www.caniplay.co.uk/charactercreations/sharing-thanks.html" --where it goes after post
local fbLink = "http://goo.gl/ujQYY" --displayed link will go there if clicked
local fbPic = "http://caniplay.co.uk/charactercreations/images/title.png" --image see guidelines on aspect ratio
local app\_id = "APP ID"
local fbName = "Character%20Creations" --appears in Bold any but needs URL encoding no spaces
native.showWebPopup(20, 20, display.contentWidth - 40, display.contentHeight - 90, "http://www.facebook.com/dialog/feed?display=touch&app\_id="..app\_id.."&redirect\_uri="..redirectUri.."&link="..fbLink.."&picture="..fbPic.."&name="..fbName.."&description="..theString)
So it shares the link in fblink, attaches the fbPic and after the post redirects to redirectUri (which I just realised the var is spelt wrong!).
EDIT: theString variable is setup elsewhere and that is what you want the text by the link to say, something like “I have just been playing APP NAME and think it’s great!”.
The reason I have both filled in the developer page is because I also have a option on my app to post images to the users wall.
Dave [import]uid: 117617 topic_id: 19775 reply_id: 110245[/import]