S
S
Sergey2016-10-31 12:03:49
PHP
Sergey, 2016-10-31 12:03:49

How to get action/mood from a post in Facebook Graph API?

I created a test application and a token for the user, I try to get information from the post, but it does not come complete. I need to get the full post title including user action, mood, etc. More details in the screenshot:
254f92990c7447fca79d590e6e2494f9.jpg
Tell me how to get this data? If it is possible of course. Google and of. documentation didn't help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Philipp, 2016-10-31
@zoonman

You did not read the documentation very carefully, although everything is pretty sensibly written in it.
There is a fields parameter, which is passed a list of fields. https://developers.facebook.com/docs/graph-api/usi...
There is also an interesting metadata parameter that will return you a list of object fields with descriptions.

$request = new FacebookRequest(
  $session,
  'GET',
  '/10206059239425923_10211089063488381',
  array(
    'metadata' => '1'
  )
);

$response = $request->execute();
$graphObject = $response->getGraphObject();
/* handle the result */

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question