lundi 11 janvier 2016

Post Status to Facebook while inside a Laravel App

I have a form in side my Laravel application

enter image description here

When user submit on that form, it will make a post to

/facebook/status/post

{!! Form::open(array('url' => '/facebook/status/post', 'class' => 'form-horizontal', 'role' =>'form','id' => 'postFbStatus')) !!}

    <input type="text" class="form-control" placeholder="What's your status?">
    <button class="btn btn-primary btn-block mt10">Submit Post</button>

{!! Form::close();!!}


Route

Route::post('facebook/status/post','FbController@post');


Controller

public function post(){
    $fb = App::make('SammyK\LaravelFacebookSdk\LaravelFacebookSdk');
    dd($fb);
}

I got this print out

enter image description here

I'm not sure what to do NEXT in my post controller.

How do I make an HTTP post to post status on Facebook ?

Any hints on this will be a huge help !



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire