Edgar P. Edgar P. - 1 year ago 114
PHP Question

Facebook PHP API v5.0 get detailed posts on group

I try to get every posts in group using

$request = $fb->request("GET","/1172154122867702/feed");

I can get the posts array from the group using
but it just contain three property which are the message,id,and updated time.

Is it possible to get the name of the user that post the feed?

Thanks in advanced!

Answer Source

Available fields: https://developers.facebook.com/docs/graph-api/reference/v2.8/post

$request = $fb->request("GET","/1172154122867702/feed?fields=message,from");

It is called "Declarative Fields" and was introduces with v2.4 of the Graph API.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download