Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Facebook like button on secured pages View modes: 
User avatar
Certified Developer v7
Certified  Developer v7
bsingh-visualantidote - 9/27/2013 10:46:49 AM
   
Facebook like button on secured pages
Hi All,

I am facing a very strange issue with in-built facebook like button in Kentico 7.0.

We have custom authentication on all secured pages. The issue is when we put FB like button on secured pages it gets current page url in fb:like annotation but Facebook fetch the url and gets the end redirected URL which is site login page not the current url .

How can we make the page accessible to facebook crawler to get the current page url as canonical url?

Or is there any setting for Facebook API?

I have tried with appId as well but it doesn't make any difference.

I want to use only like social plugin (which I think use only javascript sdk from facebook not any access token or appid.

Any help appreciated.

Thanks,
Balinder

User avatar
Kentico Consulting
Kentico Consulting
Accepted solutionAccepted solution
Kentico_RichardS - 10/3/2013 1:08:20 AM
   
RE:Facebook like button on secured pages
Hi Balinder,

Thank you for your message.

I believe that this is happening because when your page is secured and when user clicks the "like button the Facebook "pings" your page in order to get the information he can than show on its own page. However when the facebook is denied access to the page due to being secured he can only get the logon page.

Please try looking at this article -> http://stackoverflow.com/questions/5075189/facebook-like-button-not-liking-content-inside-secured-folder

Kind regards,

User avatar
Certified Developer v7
Certified  Developer v7
bsingh-visualantidote - 10/3/2013 8:00:06 AM
   
RE:Facebook like button on secured pages
Hi Richard,

Thanks for your response.

I agree. It seems like Facebook doesn't have access to secured pages.

But there is any way to allow facebook, i mean, by authentication token etc. ?

We want to allow facebook logged-in users to like a blog post or page which is secured and share it on their wall by any Kentico web part or if acheivable with custom web part by Kentico way.

Any help much appreciated.

Regards,
Balinder

User avatar
Kentico Consulting
Kentico Consulting
Kentico_RichardS - 10/3/2013 8:52:15 AM
   
RE:Facebook like button on secured pages
Hi,

We havent dealt with similar issue before but my guess would be to use Facebook Logon so that users get authenticated by Facebook and therefore the Facebook could have access to the page.

Maybe you could also try using Facebook API directly as per http://developers.facebook.com/docs/plugins/like-button/

Kind regards,
Richard Sustek

User avatar
Certified Developer v7
Certified  Developer v7
bsingh-visualantidote - 10/3/2013 9:16:22 AM
   
RE:Facebook like button on secured pages
Hi Richard,

Thanks for your response.

So is it not approachable through Kentico CMS anyway?

Regards,
Balinder

User avatar
Kentico Consulting
Kentico Consulting
Kentico_RichardS - 10/4/2013 2:02:55 AM
   
RE:Facebook like button on secured pages
Hi Balinder,

I dont think this is much of an Kentico issue as a general "no-permission" issue.

I'm not sure if the using Kentico API would even work in this case. The article I sent you below is the only one I was able to find which is talking about similar issue.

We are sorry for the inconvinieces.

Kind regards,
Richard Sustek