2016-02-13 25 views
1

我有一些智能手機在FB UI份額問題Fb的UI份額URL參數

這是功能:

function shareFB(data){ 
    FB.ui({ 
     method: 'share', 
     href: data, 
    }, function(response){}); 
} 

,我用這個代碼這樣

$urlcode=get_permalink().'?id='.$result_array[proid].'&varand='.$result_array[varand].'&outimg='.$result_array[outimg].'&xname='.$profile[first_name]; 

<a onclick="shareFB('<?php echo $urlcode ?>');" href="javascript:void(0);"> <div id="compartir" class="fb-btn"> <span class="fa fa-facebook"></span> | Compartir</div></a> 

的輸出是這樣的

shareFB('http://mydomain/slug/the-post/?id=1306715554533822&varand=765db80f406058a88591859458334060&outimg=6c2922e9a061cbd7ad03e5cbfe7157d6&xname=Miguel'); 

問題是,在某些智能手機中,我按下分享按鈕,然後它將我帶到FB應用程序。它只份額,直至 「ID」 URL參數,就像這樣:

http://mydomain/slug/the-post/?id=1306715554533822 

dissapear

在此先感謝

回答

0

我解決它做空的URL以goog.gl API的其他URL參數

問候