Is it possible to modify the Facebook page post via Laravel Project?

by Energy40   Last Updated June 13, 2019 08:26 AM

I'm working with facebook-sdk for the first time. I searched and found a way to share the post from the laravel project to the Facebook page. I'm using this package for sharing : laravel-notification-channels/facebook-poster. Now I need to edit these posts. I searched a lot but couldn't find a way. Is there a file or a path that you can suggest to me?

This is the code I use to post on the page

public function toFacebookPoster($product)
{
    $data = $product->title;
    $data2 = 'Buy it now: https://MY-DOMA─░N/'.$product->slug;
    $data2 .= str_replace( array(','), ', #', $product->keywords);

    return (new FacebookPosterPost($data.$data2))
            ->withImage(url($product->image));

Thanks for your time.



Answers 1


You can use fb php sdk directly. Refer doc at https://developers.facebook.com/docs/graph-api/reference/v2.4/post#updating

Imran Khan
Imran Khan
June 13, 2019 07:14 AM

Related Questions


Updated July 30, 2017 19:26 PM

Updated November 24, 2017 01:26 AM

Updated April 26, 2018 21:26 PM

Updated April 05, 2019 05:26 AM