duanjuhuo8772 2010-11-24 16:06
浏览 52
已采纳

如何影响Facebook在我的页面链接旁边显示的图像?

I wrote a php-redirect script, that sends the user to different pages, depending on which device they used to access the page.

Now if I post a link to the page (www.ibeat.us/i.php) on facebook, facebook doesn't show any of my images I have on this page. If I just add some "echo ..." lines, given the accessing machine is not running iOS, facebook writes those lines next to my link.

  • 写回答

1条回答 默认 最新

  • doulu8847 2010-11-24 16:31
    关注

    You can use the old image_src

    <link rel="image_src" href="http://sample.com/my.jpg" />
    

    Or the new Graph API og:image property

    <meta property="og:image" content="http://sample.com/my.jpg" />
    

    If you go by new one, remember to use the Facebook and Open Graph namespaces

    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://opengraphprotocol.org/schema/"
     xmlns:fb="http://www.facebook.com/2008/fbml">
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥50 如何增强飞上天的树莓派的热点信号强度,以使得笔记本可以在地面实现远程桌面连接
  • ¥15 MCNP里如何定义多个源?
  • ¥20 双层网络上信息-疾病传播
  • ¥50 paddlepaddle pinn
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 请问这个是什么意思?
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services