The user will enter his username of the type "lilith.jan" and by clicking on the button the name, surname, city must be filled in, in general, everything that can be pulled from his page
- I strongly doubt that this can be done "without problems" (for the user must first be logged on from you through the same facebook). If it is already logged in, then ajax request with a token will help you BUT your code is visible to everyone, and I think you hardly want to give your key to everyone. Therefore, registration on the server side -> give away the common key / token (I don’t remember exactly) on the js side and already on the js side to create what I want through ajax. - alexoander
- I just need to register during registration, that is, the user cannot be registered in any way. You just need to insert his data into the form from Facebook, so that he does not manually enter - Jonny Manowar
- oneSo no one will allow it, because all the data about the person (beyond the name it seems) are private and protected by the document about the private data of the facebook itself and another check mark is placed upon registration that such as "we all read and agree." But let's look on the other hand - why do you need it? On good, if you push a simple button "zaregatsya via facebook" to the site, you will immediately throw away the security problems and get after registering all the information about the person who you already have - alexoander
- one@alexoander, I plsanul for the second part. But in general, client-onli data from Facebook can be requested. Another thing is that the user will still have to poke into the permissions of the application. - Duck Learns to Take Cover
- @ Duck which is essentially equivalent to a request for data from Facebook (which also asks to register if you are not authorized) and additional actions from the user. - alexoander
|
1 answer
Probably you might need the Hello.js library .
In any case, you will also have to start an application on Facebook (or another social network), which the user will issue access to the data when trying to interrogate them.
If you do not want to pledge to third-party libraries, you can implement it yourself using the facebook documentation . I didn’t have to do anything for facebook specifically, but large social networks usually implement OAuth 2.0 or something very similar.
|