Reputation: 98
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.
Upvotes: 2
Views: 1940
Reputation: 96326
FYI:
I'd like to be able to verify the existence of the share post to determine if the rebate code is valid or not
That sounds like you’re violating Platform Policies, IV. Application Integration Points:
- You must not incentivize users to use (or gate content behind the use of) Facebook social channels, or imply that an incentive is directly tied to the use of our channels.
Upvotes: 3
Reputation: 4150
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/
Upvotes: 0