第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

共享頁面鏈接

共享頁面鏈接

PHP
皈依舞 2023-08-11 17:59:13
我正在從用戶的個人資料中共享事件的鏈接,事件頁面是動態(tài)的,當用戶單擊共享到 Facebook 時,我獲取事件 ID 并將其存儲到會話變量中,并且我在事件頁面中使用此會話變量來描述:og 標簽。但我的:og 標簽沒有顯示數(shù)據。這是我的代碼:    function post(id) {        document.cookie = "eventID = "+id;        <?php $_SESSION['EVENT_ID'] = $_COOKIE['eventID']; ?>;        FB.ui({               method: 'share',               href: "mywebsiteURL/events.php"           }     }//Here is the head of my events.php    $col = 'events.*,status.name as statusName,mosque_reg.name as mosque';    $table = "events,status,mosque_reg";    $where = "events.id = '".$obj->verifyint($_SESSION['EVENT_ID'])."' AND events.status_id = status.id     AND events.inserted_by = mosque_reg.inserted_by";     $ticket = $obj->read_specific_event($col,$table,$where);    if($ticket->num_rows>0)    {     $issue = $ticket->fetch_assoc();     $pic ="https://www.theglobalmuslim.com/mosque/portal/images/events/".$issue['photo'];     $contactName = $issue['contactPerson'];     $contact = $issue['contactNumber'];     $description = $issue['description'];     $topic = $issue['topic'];  }  ?>   <meta property="fb:app_id" content="258374655358948" />   <meta property="og:site_name" content="The Global Muslim"/>   <link property="og:url"           content="https://www.theglobalmuslim.com/events.php?id=<?php echo    $_SESSION['EVENT_ID']; ?>"/>   <meta property="og:type"          content="website" />   <meta property="og:title"         content="Event Name:<?php echo $topic; ?>" />   <meta property="og:description"   content="New event is held at Mosque <?php echo    $issue['mosque']."\n."." Description: ".$description ?>" />   <meta property="og:image"         content="<?php echo $pic; ?>" />
查看完整描述

1 回答

?
小怪獸愛吃肉

TA貢獻1852條經驗 獲得超1個贊

我通過打開內部頁面的 URL 解決了這個問題,并且使用 GET 方法在 :og 標簽中顯示事件信息。



查看完整回答
反對 回復 2023-08-11
  • 1 回答
  • 0 關注
  • 134 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號