Facebook offers a new functionality for groups. Now it is possible to post also files within a group. (http://mashable.com/2012/05/10/facebook-groups-3/)
I am trying to query now the files using the Graph API but on the documentation site there are only 4 urls described. "docs", "members", "feed", "picture". When I read the "feed" path I will not get file postings.
Is there a hidden path? I also found no new permission.
Anyone has any idea?
I have searched for a solution on several internet pages but there are only descriptions on how to read and post photos, which is described in the document.
Is there nobody writing an app where you can upload files to groups?
The Graph API is the primary way to get data into and out of the Facebook platform. It's an HTTP-based API that apps can use to programmatically query data, post new stories, manage ads, upload photos, and perform a wide variety of other tasks.
API Version Deprecations: As part of Facebook's Graph API and Marketing API, please note the upcoming deprecations: August 3, 2021: Graph API v3. 3 will be deprecated and removed from the platform. August 25, 2021 Marketing API v9.
try this, this might be helpful for you try {
$facebook->api('/'.$groups[$id].'/feed', 'POST', array( 'access_token' => $access_token, 'message' => stripslashes(stripslashes($mapp_message)), 'name' => stripslashes($name), 'link' => $link, 'description' => stripslashes(stripslashes($description)), 'picture' => "images/send_imges/".$image ) ); } catch(FacebookApiException $e) { echo $e; }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With