[英]Facebook wall post link contains some extra Parameters
我正在使用此代碼寫入我的Facebook牆
$AccessToken = $this->facebook->getAccessToken();
$attachment = array(
'access_token' => $AccessToken,
'message' => "$Msg",
'name' => 'some content',
'link' => $link,
'picture' => "$ShareImage",
'description' => '',
'caption'=>'',
'properties' => array (
'Send one to a friend now:' => array (
'text' => 'Facebook App ',
'href' => 'http://apps.facebook.com/appname/'
),
'Become a fan:' => array (
'text' => 'Page Name',
'href' => 'http://www.Facebook.com/page/'
)
);
它工作正常。但是問題出在圖片上,鏈接包含一些額外的參數,例如: www.mysite.com?id=12&ref=nf
id=12&ref=nf但是從文本上看,鏈接顯示了當前鏈接。從圖像指向的鏈接的內容ref=nf
無法刪除這些額外的參數。 ref
總是由Facebook添加到您的鏈接中,因此您可以從訪問它的用戶那里進行跟蹤。
nf指示用戶來自他在新聞源中看到的鏈接
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.