Joby81 / socialauth

Automatically exported from code.google.com/p/socialauth
0 stars 0 forks source link

First authentication does not works when application embedded to facebook canvas #371

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I wish to create a JSF application with socialauth, and put it into the    
Facebook canvas. I have found a tutorial somewhere, and I was able to make it 
work. I have attached my index.xhtml and the UserSession.java (with invalid app 
id and secret), and the socialLoginSuccess.xhtml 
2. The application usually works from facebook canvas. If I click on the 
generated link, I get the oauth token, and I put some info to the 
socialLoginSuccess.xhtml.
3. But when I try to use my app first, my facebook app does not have the 
permission to get data from me, so the ordinary facebook pop-up should be 
shown, so I would be able to give permission to my app. But most unfortunately 
nothing happens... It seems, that my application do not redirect me to the 
necessary facebook page.
4. What's interesting, if I'm not using my application from facebook canvas, 
the first login works as expected (it's redirect to facebook, and I give the 
permission), and from then the app works in canvas mode too.

What is the expected output? What do you see instead?
Expected output: At first use of my application the ordinary facebook pop-up 
should be shown, so I would be able to give permissions to my app to get my 
data from facebook (the app is embedded to facebook canvas). 
Actual aoutput: nothing happens, my application do not redirect me to the 
necessary facebook page.

What version of the product are you using? On what operating system?
I'm using the 4.6 version of the product. I have runned my application with 
Apache Tomcat/7.0.34, with JVM 1.7.0_45-b18. I'm using Elementary OS Linux.

Please provide any additional information below.

Original issue reported on code.google.com by georgevi...@gmail.com on 24 Sep 2014 at 2:48

Attachments:

GoogleCodeExporter commented 9 years ago
The Chrome console says this, when the problem occurs:
"Refused to display 
'https://www.facebook.com/dialog/oauth?client_id=123456789101112135&response_t��
�Success.xhtml&scope=publish_stream%2Cemail%2Cuser_birthday%2Cuser_location' in 
a frame because it set 'X-Frame-Options' to 'DENY'."

Original comment by georgevi...@gmail.com on 25 Sep 2014 at 11:06