Invalid parameters when submitting to facebook page
I am using below code to post content to Facebook page that user enters.
I can get the message successfully if I just send the message '=>' Check out my new blog post! 'parameter. But when I try to add a link or picture, it returns nothing. Sometimes invalid parameters.
But the documentation shows that you can pass a link. Can someone tell me what is wrong here.
I am using sdkphp 4.0 for Facebook
$page_post = (new FacebookRequest( $session, 'POST', '/'. $fb_account_id .'/feed', array('link' => 'http://www.example.com/','message' => 'Check out my new blog post!', ) ))>execute()>getGraphObject()->asArray();
// return post_id
print_r( $page_post );
+3
user5014779
source
to share