No, your approach is absolutely fine.
You must be using a wrong object_id
. I'm not sure what object id are you using, but the object id could be a post id
, comment id
etc.; it could not be a page id.
Domanda
Should this work:
FB.api( "/{object-id}/likes", "POST", ... )
in javascript where {object-id}
is the ID of the created object (not concatenated with anything else).
That's broadly what I'm attempting to do, but it doesn't work.
I'm getting follow error:
The parameter url is required
OAuthException
100
Am I just taking the wrong approach?
Thanks
Soluzione
No, your approach is absolutely fine.
You must be using a wrong object_id
. I'm not sure what object id are you using, but the object id could be a post id
, comment id
etc.; it could not be a page id.