我試圖在應用程序中集成Facebook共享功能,但只要點擊共享按鈕,Facebook就會從頭,而不是顯示當前標題和URL,它返回我的登錄頁面的網址和登錄頁面的標題,我已經試過這Facebook在共享對話框中顯示我的登錄頁面,而不是當前頁面標題和網址
Facebook share button is sharing my login page instead of current page URL, title, etc
但根據Facebook上Feed button was dereciated並與分享按鈕
取代下面的代碼包含在我的應用程序的每個頁面中
<meta property="og:title" content="<?php echo $title ?>"/>
<meta property="og:type" content="Type of content"/>
<meta property="og:url" content="<?php echo current_url() ; ?>"/>
<meta property="og:site_name" content="My site name"/>
<meta property="og:description" content="<?php echo $description ; ?>"/>
你有沒有試過這個:https://developers.facebook.com/tools/debug/ – 2014-10-02 05:13:06
是的,我已經嘗試過,仍然拉我的登錄頁面.. – RobyMi 2014-10-02 05:14:19