R
R
Rodion Yurchenko2015-05-06 09:46:24
PHP
Rodion Yurchenko, 2015-05-06 09:46:24

How to like a photo using FACEBOOK PHP SDK?

Good afternoon. You need to write a php script that will like, for example, photos by their id. Permissions already have publish_actions and publish_pages.
My code is something like this:
$request = new FacebookRequest($session, 'POST', '/me/og.likes' ,array ('object'=>'LINK_TO_POST') );
I have 2 questions
1) how to get the id of the post that needs to be liked
2) am I digging in the right direction at all

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mihass, 2015-08-21
@mihass

Can you tell me how you got the publish_actions and publish_pages rights? We are just now doing our application and these rights are a snag. The save button is disabled. There you need to add a description with an explanation why we need these rights, is it possible to write in Russian or is it obligatory in English? I will be grateful for the answer.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question