我在共享时对 facebook 共享器有疑问,生成文件路径并在 facebook 上共享准备在用户时间线上显示的本机 gif。当然我正在使用
.qa_html ($ this-> content ['description']).
Run Code Online (Sandbox Code Playgroud)
这是最终 .gif 文件的目的地
.qa_html ($ shareurl). 是出版物的网址是我希望用户在单击左下角 facebook 上的网站按钮以及下图中时重定向到的网址。
有人可以告诉我如何通过在用户的时间轴上显示本机 gif 但使用基于此信息的发布地址来更改对 facebook 的共享吗?
我的元变量
$this->output('<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />');
$this->head_links();
if ($this->template == 'question' && strpos(qa_get_state(), 'edit')===false ) {
$pagetitle=strlen($this->request) ? strip_tags($this->content['title']) : '';
$headtitle=(strlen($pagetitle) ? ($pagetitle.'') : '');
$this->output('<meta property="og:url" content="'.qa_html( $this->content['canonical'] ).'" />');
$this->output('<meta property="og:type" content="article" />');
$this->output('<meta property="og:title" content="'.qa_html( $headtitle ).'" />');
$this->output('<meta property="og:description" content="Click To Watch" />');
$this->output('<meta property="og:image" content="'.qa_html( $this->content['description'] ).'"/>'); …Run Code Online (Sandbox Code Playgroud)