Php 如何在facebook上发布链接(使用post方法图形api)
如何在Php 如何在facebook上发布链接(使用post方法图形api),php,facebook,post,facebook-graph-api,Php,Facebook,Post,Facebook Graph Api,如何在帖子的描述(或“标题”)中添加链接 我试过: $attachment = array ( 'name' => $title, 'link' => $link, 'description' => "www.google.it", 'caption' => "www.google.it"
帖子的描述(或“标题”)中添加链接
我试过:
$attachment = array (
'name' => $title,
'link' => $link,
'description' => "www.google.it",
'caption' => "www.google.it"
);
$this->facebook->api("/$uid/feed", 'POST', $attachment);
。。。。这些链接是以文本形式发布的,而不是可点击的链接。
我使用/PROFILE\u ID/feed方法,并且在我的应用程序安全设置中禁用了Stream post URL安全性我认为,如果在链接中添加“http://”,至少在描述中,它们将是可点击的。我认为如果在链接中添加“http://”,至少在描述中,它们将是可点击的。如果添加“http://”它将在[消息]和[操作]中工作。为什么在[标题]或[说明]中不起作用?我也想知道
$attachment = array(
'access_token'=>TOKEN_HERE,
'message' => 'http://www.example.com/',
'name' => 'name_here',
'caption' => 'caption_here',
'description' => 'description_here',
'picture' => 'http://www.example.com/image.jpg',
'actions' => array(
array('name' => 'http://www.example.com', 'link' => 'link')
)
);
如果添加“http://”,它将在[消息]和[操作]中工作。为什么在[标题]或[说明]中不起作用?我也想知道
$attachment = array(
'access_token'=>TOKEN_HERE,
'message' => 'http://www.example.com/',
'name' => 'name_here',
'caption' => 'caption_here',
'description' => 'description_here',
'picture' => 'http://www.example.com/image.jpg',
'actions' => array(
array('name' => 'http://www.example.com', 'link' => 'link')
)
);
我希望当你写$attachment
,$title
,$link
?我希望当你写$attachment
,$title
,$link
时它只是一个打字错误?