SureshKekan / socialauth

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

FaceBook Login issue #173

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Create One class which redirects to facebook for login user.

2.redirect url is 
https://graph.facebook.com/oauth/authorize?client_id=152190004803645&response_ty
pe=code&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2FLoginExample%2FtwitterCallb
ack&scope=publish_stream,email,user_birthday,user_location

3. there I got some Oauth exception I am using socialauth2.2

4. But struts example redirects to this url
https://www.facebook.com/login.php?api_key=152190004803645&skip_api_login=1&disp
lay=page&cancel_url=http%3A%2F%2Fopensource.brickred.com%2Fsocialauthdemo%2Fsoci
alAuthSuccessAction.do%3Ferror_reason%3Duser_denied%26error%3Daccess_denied%26er
ror_description%3DThe%2Buser%2Bdenied%2Byour%2Brequest.&fbconnect=1&next=https%3
A%2F%2Fwww.facebook.com%2Fdialog%2Fpermissions.request%3F_path%3Dpermissions.req
uest%26app_id%3D152190004803645%26redirect_uri%3Dhttp%253A%252F%252Fopensource.b
rickred.com%252Fsocialauthdemo%252FsocialAuthSuccessAction.do%26display%3Dpage%2
6response_type%3Dcode%26perms%3Dpublish_stream%252Cemail%252Cuser_birthday%252Cu
ser_location%26fbconnect%3D1%26from_login%3D1%26client_id%3D152190004803645&rcou
nt=1

What is the expected output? What do you see instead?

What I am expecting it should redirect to the same url which is in the demo.

What version of the product are you using? On what operating system?
2.2 win7

Please provide any additional information below.

Original issue reported on code.google.com by penchala...@holidayjuggle.net on 24 Apr 2012 at 7:19

GoogleCodeExporter commented 9 years ago
Hi

If you are using our application key/secret then you'll have to use the same 
callback url.

As per your redirect url giving in point-2, it seems you are running your 
application from localhost. Please have a look into the following link if you 
want to run this application from localhost:-

http://code.google.com/p/socialauth/wiki/HowToRunApplicationWithLocalhostOnWindo
ws

Regards
Tarun

Original comment by tar...@brickred.com on 27 Apr 2012 at 8:31

GoogleCodeExporter commented 9 years ago
Hi,
      My issue was facebook authorization url used in framework was
https://graph.facebook.com/oauth/authorize?<https://graph.facebook.com/oauth/aut
horize?client_id=152190004803645&response_type=code&redirect_uri=http%3A%2F%2Flo
calhost%3A8080%2FLoginExample%2FtwitterCallback&scope=publish_stream,email,user_
birthday,user_location>(
here I got OauthException)
But example url is
https://www.facebook.com/login.php?<https://www.facebook.com/login.php?api_key=1
52190004803645&skip_api_login=1&display=page&cancel_url=http%3A%2F%2Fopensource.
brickred.com%2Fsocialauthdemo%2FsocialAuthSuccessAction.do%3Ferror_reason%3Duser
_denied%26error%3Daccess_denied%26error_description%3DThe%2Buser%2Bdenied%2Byour
%2Brequest.&fbconnect=1&next=https%3A%2F%2Fwww.facebook.com%2Fdialog%2Fpermissio
ns.request%3F_path%3Dpermissions.request%26app_id%3D152190004803645%26redirect_u
ri%3Dhttp%253A%252F%252Fopensource.brickred.com%252Fsocialauthdemo%252FsocialAut
hSuccessAction.do%26display%3Dpage%26response_type%3Dcode%26perms%3Dpublish_stre
am%252Cemail%252Cuser_birthday%252Cuser_location%26fbconnect%3D1%26from_login%3D
1%26client_id%3D152190004803645&rcount=1>
(facebook
recently changed to this url)

Thanks&Regard,
Penchalaiah MR.

On Fri, Apr 27, 2012 at 2:01 PM, <socialauth@googlecode.com> wrote:

-- 
*Thanks & Regards,
*
*Penchalaiah MR.*

Original comment by penchala...@holidayjuggle.net on 30 Apr 2012 at 4:22