heroku / nibs

http://heroku.github.io/nibs/
61 stars 93 forks source link

Facebook authentication is not working on a fresh install. #6

Closed n370 closed 9 years ago

n370 commented 9 years ago

I just cloned the project and worked through this guide to get it working locally. Unfortunately as soon as I clicked the "login with facebook" button this is what I got.

Any clue?

chrisanderton commented 9 years ago

Does your Contact table have a fbUserId__c column?

n370 commented 9 years ago

@chrisanderton

It seems it doesn't Chris.

chrisanderton commented 9 years ago

Ok - if you look here line 78, Facebook.js you will see the columns it is trying to insert into.

I think the problem is that these columns are created when you use Heroku Connect to connect to Salesforce - they are not currently created for you when using in isolation.

If you add the following two columns to your Contact table (the data types in brackets are what i am pulling out from a db i have here - i don't know why gender needs 255 chars max!):

fbUserIdc (varchar, max 50) genderc (varchar max 255)

And then try it..

n370 commented 9 years ago

Thanks @chrisanderton! It's working fine now. I just had to make sure column names were all lowercase.