0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Facebookのシェアした際のプレビュー画面をlocal環境でも確認できるようにしたい

Posted at

今回の経緯

  • facebookシェアデバッカーでfacebookでシェアした際にプレビュー画面がどう表示されるかURL確認したい
  • ngrokで確認しようとしたが正常に表示されない

Facebookシェアデバッカー
https://developers.facebook.com/tools/debug/

前提条件

  • facebookのシェアボタンは設置できている
  • facebook for developersの設定は完了している
  • あとはシェアで結果を確認できる状態

対策

  • localtunnelを使用
lt -h "http://serverless.social" -p 3000

上記コマンド入力後に表示されるURLを使用し、シェアデバッカーで確認したところ問題なくプレビュー画面が確認できました。
しかしながら、localtunnelはすでに開発が行われいないようで今後使用できるかは不明です(2020.3.23確認)。
リスクもあると思われますので、恐れ入りますがその辺りはご了承ください。

以上です。
いいねやQiitaやTwitterのフォローいただけると励みになります!
お気軽にどうぞ〜

お疲れ様でした!!!


参考ページ

Github Localtunnel is down #343

0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?