1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Facebook Like

2 posts, 0 answered
  1. Muhammad Saqib
    Muhammad Saqib avatar
    95 posts
    Registered:
    09 Sep 2009
    08 Jun 2010
    Link to this post
    I want to add Face book LIKE button to my sitefinity pages. is there any module or help available?
    Thanks
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    08 Jun 2010
    Link to this post
    Hello Muhammad Saqib,

    We do not have documentation on how to do this.

    I can suggest that you take a look at Facebook's developer documentation. First you need to get an API key for your website: Create an Application. You can use their JavaScript SDK to parse <fb> tags into the respective buttons. Their help on the SDK can be found here: JavaScript SDK. You can use HtmlGenericControl to create the tag and add it to the page:
    protected void Page_Load()
    {
        HtmlGenericControl likeButton = new HtmlGenericControl("fb:like");
        likeButton.Attributes.Add("href", "http://google.com");
        this.Controls.Add(likeButton);
    }

    Note that you should add the java script code which loads their SDK.

    Best wishes,
    Radoslav Georgiev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
2 posts, 0 answered