Note that there are some explanatory texts on larger screens.

plurals
  1. POLike url point to page tab
    primarykey
    data
    text
    <p>I have a FB app installed as a page tab. The only way the site I am working on is intended to be viewed is within the tab. The site has "entries" , I want to be able to like each entry individually, point to my pagetab and include the entry id as app_data in the query string.</p> <p>When the landing page receives the post from the page tab I will check check the value of app_data and, if necessary, redirect to the appropriate details page. </p> <p>So what I tried is when outputting the entries I use the like button like so:</p> <pre><code>&lt;fb:like layout="button_count" href="&lt;%= this.GetDetailsUrl() %&gt;"&gt;&lt;/fb:like&gt; </code></pre> <p>GetDetailsUrl simply takes the url of my app and appends the entry id as app_data, something like this: </p> <pre><code>protected string GetDetailsUrl() { return "http://www.facebook.com/mypage/app_myappid?app_data=" + entry.EntryId.ToString(); } </code></pre> <p>Now, what is happening is the like button seems to only point to <code>http://www.facebook.com/mypage</code> , this happens when the like button is clicked and I can see that the like counter for each entry seems to point to the same place, they all have the same count. </p> <p>Is there a way for me to have a like point to a page tab as I am trying to do? Any advice would be appreciated. Thanks!</p> <p><strong>edit:</strong> After CBroe's suggestions I am using the following on my details page:</p> <pre><code>&lt;meta property="og:title" content="Entry Title"/&gt; &lt;meta property="og:type" content="article"/&gt; &lt;meta property="og:url" content="http://www.myredirect.com?id=entry_id"/&gt; &lt;meta property="og:image" content="http://www.mysite/entryimage.jpg"/&gt; &lt;meta property="og:site_name" content="http://www.mysite.com"/&gt; &lt;meta property="og:description" content="Entry Description"/&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload