Hi scriptcaser,
thanks for the hint, I found the other (fb-standard) way, I describe it, unfortunetally it has a some problem, so I leave it open.
So how to implement FB-like in a row of a grid with the link to an url which is a column of the grid (a field, ie. {itemURL}):
1.,generate your own code on developer.facebook.com, it results two part, for me they was (of course appID is a fake one here)
the sdk API:
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/hu_HU/sdk.js#xfbml=1&version=v2.4&appId=65465456592311";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
the link itself :
<div class="fb-like"
data-href="http://www.your-domain.com/your-page.html"
data-layout="standard"
data-action="like"
data-show-faces="true">
</div>
2.,
copy the sdk API code (first) into the header of the application (to the html code)
3,. create a text field (ie {fblike} and add the link to the field in the OnRecord, somehow like this
{fblike} = "<div class=\"fb-like\" data-href=\"".{itemURL}."\" data-layout=\"button_count\" data-action=\"like\" data-show-faces=\"true\" data-share=\"true\"></div>";
So it works…on the first, initial page.
When I try to navigate to the next page, this column is empty, and if I go back to the first screen, also empty. Only a browser level refresh reloads again the share and like facebook button.
Please give me some idea, why, and how to solve this problem ?
BR
Zsolt