[英]Facebook Javascript Share UI include get variables in link
我正在使用facebook SDK共享頁面鏈接:
FB.ui({
method: 'feed',
link: 'http://freebirdevents.co.uk/test_results/?individual_result=1162',
caption:$(this).data('message'),
}, function(response){});
但是,它忽略了get參數,我嘗試了URL編碼,但沒有成功。
但是它忽略了get參數
那是因為您告訴它 :
<link rel="canonical" href="http://freebirdevents.co.uk/test_results/" />
您在此處指定的內容的實際URL為http://freebirdevents.co.uk/test_results/
。 Facebook緊隨其后,並繼續請求該 URL以從中獲取相關的元數據。
如果您不希望這樣做,請不要將其指定為文檔的規范URL。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.