Posting on the group's Facebook wall via php

-3

I logo on facebook with my profile. I use wamp ... I have the following variable in my script php

$texto = "Postando no grupo via php";
$grupo_id_url = "https://www.facebook.com/groups/617092775071175";

I want this sentence to be posted posted on this group there, can anyone help me?

    
asked by anonymous 22.06.2016 / 20:10

1 answer

-1

The code is explained at a glance: '

/* PHP SDK v5.0.0 */
/* make the API call */
$request = new FacebookRequest(
  $session,
  'POST',
  '/{group-id}/feed',
  array (
    'message' => 'This is a test message',
  )
);
$response = $request->execute();
$graphObject = $response->getGraphObject();
/* handle the result */
'

Api Facebook

    
22.06.2016 / 21:04