I have the following code for the like button:
<fb:like data-href="http://foobar.com/Home/View/@Model.News.Id/" send="true" width="320" show_faces="true" font=""></fb:like>
When I try to debug this in Facebook Linter. It’s failing:
Can't Download: Could not retrieve data from URL.
When I look at what Facebook returns as a response I see that it’s redirecting to authentication page.
This is a canvas app and I have to authenticate the users right. So I have it in every action within controller.
All I want to do is a like button per page which are dynamic.
How can i fix this ? any ideas?
FYI: https://developers.facebook.com/blog/post/407/
For this
You should allow linter to access the page to read the og tags. If you page is under user authentication, you should some how allow facebook
The user agent of the scraper is: “facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)”