Search code examples
facebook-likefacebook-opengraph

"Like" open graph action


I have an iPhone app (http://getnowapp.com) that lets you "Like an experience". I would like to integrate it on the Facebook timeline with Open Graph.

I set up the "Like" action on Opengraph but got rejected with the following reason: "Your Action failed the criteria: You are trying to submit a custom action which is not permitted. Please delete this action and submit a built-in version of this action instead."

So it seems Like is not an acceptable action as it already exists in Facebook.

However, you can "Like a Pin on Pinterest" without any issues.

Am i missing something here?

Thanks! Ben


Solution

  • As you figured out, "like" action is already defined by facebook and that's why you can't define a new one.
    I guess what pinterest does is to use the like connection that is already supported by Open Graph API to "Like." https://developers.facebook.com/docs/opengraph/actions/#like_action
    I'm not quite sure because I haven't used this action, though.

    POST https://graph.facebook.com/ACTION_ID/likes?access_token=YOUR_ACCESS_TOKEN
    

    And just in case you are interested, you can see some insights of pinterest's implementation. here