L
L
lsa4132015-11-02 17:58:51
JavaScript
lsa413, 2015-11-02 17:58:51

Authorization on the site through classmates and twitter without reloading the page (javascript)?

Hello!
Such a question, in Facebook and Vkontakte, there is a very simple way to authorize a user through the Javascript SDK without reloading the page. I also need to implement authorization through Odnoklassniki and Twitter without reloading the page. But in their api, the devil will break his leg. I saw on many sites that this is possible. For example, on film search, uploading ratings to Twitter (essentially authorization) is easily connected, without reloading the page.
Tell me where to dig? Most likely, as such, these APIs do not have clear authorization through javascript, but maybe there are some crutches or I didn’t notice something?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis Ineshin, 2015-11-02
@IonDen

Classmates, IMHO, in the oven. But it’s worth understanding the Twitter API.
You can also, for example, look towards aggregators: https://ulogin.ru/ , https://loginza.ru/

D
Dmitry, 2015-11-02
@thewind

Why do you need Javascript? Regular Oauth will do.
1. Open a window with a request for rights / permissions
2. The user presses "ok" in this window
3. In the same window there is a redirect to your redirect_url, where you do everything you need on the server
4. Further in the same window it calls some JS function in the parent window ( self.opener.myDummyFunction() ) and close the window self.close()
In general, twitter and classmates are no more complicated than the rest.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question