Facebook PHP API v5.0 get detailed posts on group
Get the solution ↓↓↓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$response->getDecodedBody();
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?
Answer
Solution:
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.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: call to undefined function illuminate\encryption\openssl_cipher_iv_length()
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.