Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local attachment = {
- name = "Yeeha, Your image is now on your Facebook page!",
- link = "https://www.facebook.com/pages/3Claws-Games/419060951520798",
- caption = "Visit 3Claws on Facebook",
- description = "My scary Image on FearCam.",
- source = { baseDir, filename="imageForFb.jpg", type="photo" },
- source = { system.TemporaryDirectory, filename="imageForFb.jpg", type="image" },
- --picture = "http://www.coronalabs.com/links/demo/Corona90x90.png",
- --IT WORKS IF I COMMENT OUT THE source VARIABLE AND USE picture VARIABLE INSTEAD
- --BUT I HAVE TO PICK FROM THE TemporaryDirectory FOLDER
- actions = json.encode( { { name = "My Image", link = "http://3claws.org" } } )
- }
- facebook.request( "me/feed", "POST", attachment ) -- posting the photo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement