facebook - Target attribute when performing redirects in Google App Engine (Python) -


I'm trying to implement Facebook login in my canvas app using "manual build line flow". To successfully implement it, I have to redirect to the Facebook Authentication URL with the target = "_top" parameter, basically the following redirect:

& lt; A href = "https: //www.facebook .com / dialog / oauth? Client_id = {app-id} and redirect_uri = {redirect-uri}" target = "_top" & gt; Redirect to & lt; / A & gt;

I know that we can use self.redirect ({url}) to redirect to GAE, but I did not know that we How to set up a goal as the HTML code above.

Please help me.

The goal just defines how the browser windows will open the page. If & lt; A & gt; (After this "link") is in an iframe, then the browser will open the link in the highest level (as a regular page) of frameset (as a regular page). This is important for Oath Links because iFrame has some restrictions that break the necessary flow of requests.

You will fix a regular redirect, assuming that the link clicked by the user to access the redirect handler is a & lt; A & gt; If there is an element that is not running in Iframe or target = "_ top" if it is.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -