1
votes

I am trying to register users via Facebook using django rest-auth.

As per the installation docs here, a rest call to register a user via facebook requires an "access token" and "code". I know what an access token is, but what is "code"?

1
Go to developers.facebook.com in order to find out.Paulo Scardine
Well I did look around for sometime and I could not figure out. What's wrong in asking if I cannot find the solution?user3282666

1 Answers

1
votes

First of all, you need to create a Facebook Application in the developers page. You will get a Facebook app code and a secret.

For using the /rest-auth/facebook/ method from the django-rest-auth, you need to send the access code (obtained using the javascript SDK) and the code of the Facebook Application.

Finally, before using this method, you have to go the the application back-office and create a social application, using the Facebook app code and the secret.