简体   繁体   中英

FB like button in tab page application

I put this line of code in my view:

<div class="fb-like" data-href="http://localhost:60193/Stories/Details/1" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"></div>

as it's in docs

But when I press to like button at first this pops up:

在此处输入图片说明

and when I click to like result is:

在此处输入图片说明

What's wrong?

You can´t like a "localhost" link, liked URLs must be accessible in public. In other words, Facebook needs to be able to access it. It does not make any sense to like something that only exists on your computer anyway...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM