Posting on the group’s wall on facebook via php

Asked

Viewed 151 times

-3

I’m already on Facebook with my profile. I use the 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 phrase to be posted in that group there, someone can help me?

1 answer

-1

The code is explained, take a look: `

/* 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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.