3

I am configuring my project to use Sitecore Social Connected in order to allow users to log in to the site using their Facebook account. A prerequisite of this is to have a Facebook App created (described here). Will this work when I am running the site on my machine e.g. under say localhost ? I assume I need to create a Facebook App with the "Site Url" set to localhost, but I'm not even sure if that would work and whether Facebook actually needs to be able to access my Sitecore instance? If so, I guess this could only be tested on an integration environment if it is publicly available.

2

Last time I created Facebook app 2 years ago and at that point I got it working with localhost:port as Site Url and localhost as App Domains. If that doesn't work, you could try creating a "Test App". There is a menu on the top left corner. If that also fails, this SO post has a discussion about using localhost for development of facebook apps.

App settings Create Test App menu

4
  • I tried to add a port number but it seems not to be accepted by Facebook as it displayed a validation error saying it was not a correct hostname format. Oct 17 '17 at 12:28
  • If port number is not allowed, then try adding another binding (alias) to your localhost website in IIS, update etc/hosts file and use the new url in Facebook App. I found this suggestion here: sitecorecontextitem.wordpress.com/2014/09/26/…
    – grg
    Oct 17 '17 at 12:40
  • Ok, I'm trying this but it has not changed the outcome, unfortunately. I will need to ask a different SSE question! Oct 17 '17 at 15:04
  • Sure, I hope you'll be able to get it working.
    – grg
    Oct 18 '17 at 7:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.