@Joshua
Makes sense not to allow posting on any random page…
Let me explain in detail…
I am using this Facebook Wrapper module to test Facebook posting on the Corona simulator.
I am using an account which is not an administrator of a page “myPage”(the page where I want to post)…
When I make the following call,
[lua]libFacebook.request(“myPage/feed”, “POST”, {message = “testing”}, listener)[/lua]
a post is made on my Facebook page “myPage” with the status “testing”… So far fine.
Now I want to post a photo on myPage’s wall… Since posting on the page’s wall can be done, I am assuming posting a photo would also be possible…
any ideas?
EDIT
I know some pages don’t allow users to post unless the user likes the page… But myPage’s settings allow any user to post on the page. So that’s not a problem.
I just want to know how to post photos on the page’s wall…
I tried
[lua]local imageInfo = {
baseDir=system.DocumentsDirectory,
filename=“myImage.jpg”,
type=“image”
}
local attachment = {
message = “Hello! :)”,
source = imageInfo,
}
facebook.request( “myPage/photos”, “POST”, attachment )[/lua]
but that doesn’t work… in the Facebook wrapper module,
the facebook request for the above would be
[lua]libFacebook.request(“myPage/photos”, “POST”, {message = “testing”}, listener)[/lua]
but I do not know how to manually send the image data in the POST request… Some sources said you have to send image as Multipart form data but I have no idea how to do that(I tried using this method but that didn’t work).
Any help is appreciated!
Thanks! [import]uid: 64174 topic_id: 33480 reply_id: 133617[/import]