Z
Z
zlodiak2020-06-09 14:21:32
JavaScript
zlodiak, 2020-06-09 14:21:32

How to open facebook authorization in a new window?

I have a button on the site from facebook, after clicking on which the authorization form opens in a new window. I would like to make it so that this form does not open in a new one, but in the same window. Example here

I understand that you need to use the redirect_url parameter for this, but it's not clear to me where in the code to use it. For definiteness, I can say that I use the approach described in the official facebook documentation. My code is generally similar to this

Please help me understand how to solve the problem

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mario Kun, 2020-06-11
@marioKun

Use the target attribute on the 'A" element

<a href="link_to_auth" target="_self">Login to Facebook</a>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question