Wednesday, 11 September 2013

Posting to a page on Facebook

Posting to a page on Facebook

I have a client who wants an app built that allows users (not the page
admin) to post to a Facebook page... the idea being people take photos of
themselves at an event run by this company, and the photos can
automatically be uploaded to the company's Facebook page.
I thought the easiest way to do this was to mention the company's Facebook
page in a post - I've been following this documentation:
https://developers.facebook.com/docs/opengraph/guides/tagging/#mentions
I'm developing using Corona SDK, and can post to the user's wall from my app:
facebook.request( "me/feed", "POST", {message="This is a test post
mentioning @[1245321]"} )
The problem is the post comes out looking like this:
"This is a test post mentioning @[1245321]"
instead of:
"This is a test post mentioning COMPANY NAME"
Can anybody help me out please?

No comments:

Post a Comment