edit:
I do some check`s more, that do like just for who in the account friend-list.
lets say A friend B but not friend C, and B friend C A can do like to B post, but not to C, but B can do like C and to A
Why that happen!?
Original:
I try to like post/photo with users, they give my access and i use the token That what i tried:
$access = $row['access_token'];
$like = $facebook->api($post_id . "/likes", 'POST', array (
'access_token' => $access));
And that a access i got:
email,user_birthday,publish_actions, read_stream
and that error:
Fatal error: Uncaught OAuthException: (#200) Permissions error thrown in........(the dir)
Thanks to helpers :)
Keep in mind that those permissions need to get approved by Facebook before using them as user. Before approval, they will only work for App admins and every other user will only be able to use basic permissions. See changelog and review guidelines:
Meaning, non-admins will get an Access Token, but before getting approval for the permissions, those Access Tokens will not be able to use the publish_actions
permission - and that´s what you need for liking via API.