LoginSignup
0

More than 5 years have passed since last update.

WEBページにOGを設定しているがリダイレクト等でog:urlがうまく反映できない時

Posted at

http://nobish.jp/facebook/facebook-like-button-is-it-possible-to-change-the-url.html
「facebookexternalhit」というUserAgentの時に都合の良いHTMLを返してやれば良いらしい。
仕様変えられたら対応する所だけれど、そうそう変わらないだろう。
(UserAgent変えた瞬間に、同じような事しているページのイイネがみんな0になる危険があると思うし。)

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0