Hi Coronites,
I’m trying to share a photo to Facebook using facebook.showDialog, but I can’t get this working and I can’t find an example either. Here’s my code:
[lua]facebook.showDialog( “feed”, {
redirect_uri = “www.website.com”,
link = “www.website.com”,
picture = { baseDir=system.ResourceDirectory, filename=“photo.png”, type=“image” },
name = “name”,
caption = “Caption”,
description = “Description”
})
[/lua]
Here’s the Facebook documentation (https://developers.facebook.com/docs/reference/dialogs/feed/):
“The URL of a picture attached to this post. The picture must be at least 200px by 200px. See our documentation onmaximizing distribution for media content for more information on sizes.”
I’ve managed to successfully use the facebook.showDialog to post text to Facebook, but not yet with a photo as well. Hope you can help.