How can I pin custom location to my Facebook feed via API (PHP)? -


sorry bad english! have problem facebook php api. how can make post in facebook, custom latitude , longitude? (pin location)

$token = $request->input('facebook_token');     $fb = new facebook([         'app_id' => env('social_facebook_id', ''),         'app_secret' => env('social_facebook_secret'),         'default_graph_version' => 'v2.5'     ]);     try {         $response = $fb->post('/me/feed', array(             'message' => $request->input('text'),             /*'place' => array(                 'location' => array(                     'latitude' => $request->input('lat'),                     'longitude' => $request->input('lng'),                 )             )*/ // doesn't work              /*'latitude' => $request->input('lat'),             'longitude' => $request->input('lng'),*/ // =(         ) , $token); 

"message" field works great, can't how pin location, i've read this documentation, still don't understand.

by way:

$response = $fb->post('/me/feed?message=test message', array(), $token); 

this works great.


Comments