When making a call to post an action on an object, how can you determine if a user has already taken that action on the object? If the call is switched to "get" instead of "post", it will retrieve all the user's actions, not just the current object's. Also, replacing the first argument with the object's URL will result in an error.
It is important to clarify that I am interested in knowing whether the user took the action in the past, like yesterday, or at some previous time, and not just checking the success of the current call.
FB.api('/me/namespace:action', 'post', likeOpts, function(response) { if (!response || response.error) { console.log(response.error); } else { // success } });