I have looked all over the internet and have not found an answer.
I admin a buy and sell group on facebook and am querying the group/feed through the facebook graph api. If I post in the group as a ‘discussion’ post it shows up in the query results, but anything I post as a ‘buy/sell’ post does not come through in the query results. Is there anything in the graph API for querying buy/sell posts in a group?
3
Answers
I have same problem now. Before query with field ‘feed’ gave me all type of post from group, but now only discussion appear in response. Did you use ‘posts’ field?
This is still a problem as of April 2020. Posts to a group which have a
sale_post_id
in the query string on their detail page come back from the/feed
endpoint without any content, only anid
and anupdated_time
parameter.No documentation referencing Sales Posts appears to exist in the Group Feed graph API documentation.
As far as I can tell, there is no present solution for programmatic access to these post types.
It looks like you need to include the field "attachments" to get the item for sale. In the following example,
6161166157241517_6161180003906799
is a post to a group containing a item for sale, "Gears".I’m not sure how long the link will be valid for, but here’s the UI link to that post: https://www.facebook.com/commerce/listing/1114583039178806/?ref=share_attachment
Making a
GET
request to this endpoint:https://graph.facebook.com/6161166157241517_6161180003906799?fields=child_attachments,attachments,status_type,type
Yields this response JSON (note that
child_attachments
andstatus_type
are not included in the output)