facebook - Using API To Post Links Does Not Include Picture, Title or Meta Desc PHP -
when posting using api receive this:
https://www.facebook.com/weather.warnings/posts/329128793830700
notice how title, thumbnail , meta description missing thing.
the following code using.
$allalert = array ( 'oauth_token' => 'not pasting :p', 'message' => "new $type $where", 'link' => $url, ); $sendalert = $facebook->api('/125291287567922/links/','post',$allalert);
referencing how 1 post thumbnail picture facebook /links object? says item pulls picture page itself
thoughts?
you can passing following items in array:
'name' => "post title", 'link' => "url page", 'message'=> "message", 'description' => "longer description", 'picture'=>"url of picture", 'caption' => "another bit of text"
this removes reliance on fb scraper go out url , scrape , parse data.
Comments
Post a Comment