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.