简体   繁体   中英

Post facebook event on group wall

I'm trying to post an event on a group wall-

try 
{
   $ret_obj = $facebook->api($groupId.'/feed', 'POST',
                          array(
                           'link' => 'https://www.facebook.com/events/EVENT_ID/')); 

} 
catch(FacebookApiException $e) 
{
}

this code post successfully the event but it doesn't appear properly on the group . it only show the name of the event,but doesnt show picture,details and more...

ps: it work properly on page wall and i have chech my group permissions tell me what wrong,is it a facebook issue ??

Facebook might not be able to fetch the details from the link; you can manually set the other parameters-

array(
        'lik' => 'https://www.facebook.com/events/EVENT_ID/',
        'picture' => PICTURE_URL,
        'description' => DESC,
        'caption' => CAPTION  )); 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM