I have an app (or link really) that allows my customer to share a certain product to their wall/timeline through this protocol:
http://www.facebook.com/dialog/feed?app_id=APP_ID&link=….
Upon successful share, the customer gets a coupon code, once he/she is directed back to my site.
I’d like to be able to verify the existence of the share post to determine if the rebate code is valid or not. I have the post id, looking like this:
704745000_513399762010000 (random example)
I kind of figured out that I need permission to query for a specific post using graph-api in a users timeline, but how can I get the permission? Any pointers and examples (in php) are appreciated, thanks.
You can use the php sdk to both: create the post, get a returned id to store in database and authenticate user to your application.
there is a login and api request sample included in the sdk.
http://developers.facebook.com/docs/reference/php/