2

I have Facebook app and want to allow users log in on my website.

I've read all answers on SO and FaceBook community but they cannot solve problem.

In my facebook app settings:

  • In "Dashboard" i see status "Live and available to all users"
  • In "Status & Review" public mode set to "Yes"
  • Email is correct
  • No alerts
  • Double checked app secret
  • Domain added as example.com
  • Platform "Website" also set up with url http://www.example.com/ (mobile is set too with exactly same url)
  • Permissions "email", "public_profile" and "user_friends" are in status "Live and available to all users" (block "Approved Items")

Trying to login from working site.

How can i fix this?

UPD. This was my inattention – app id was wrong.

Community
  • 1
  • 1
trogwar
  • 216
  • 1
  • 11
  • 26

1 Answers1

0

You need to add the correct Platform in the App Settings too.

Settings > Add Platform
andyrandy
  • 72,880
  • 8
  • 113
  • 130
  • Updated question with additional info about configuration. Yep, platform also set with valid url to my site root `http://www.example.com/` – trogwar Nov 04 '14 at 13:25
  • did you set the mobile url too? – andyrandy Nov 04 '14 at 13:39
  • btw, you only need "example.com" in the app domains field, it will work for subdomains too and you don´t need www.example.com either. – andyrandy Nov 04 '14 at 13:40
  • Yes, mobile url is set up too (same as main). Also, updated facebook settings "App Domains" field with only `example.com`. This doesn't fix error. – trogwar Nov 04 '14 at 14:01
  • i see that you checked the app secret. did you check the app id too? that´s even more important. you only need the secret on the server. – andyrandy Nov 04 '14 at 14:07
  • Oh, my.. You're right. AppId was different. This solves my inattention, thank you! But, i have now secondary question. This app was working normally (about half year). App id can be autochanged by Facebook? – trogwar Nov 04 '14 at 14:31
  • not really, no. and you can only change the app secret afaik - which is only useful for security reasons, if the secret is compromised. but i am happy to help :) – andyrandy Nov 04 '14 at 14:48