daogr / facebook-actionscript-api

Automatically exported from code.google.com/p/facebook-actionscript-api
0 stars 0 forks source link

Mobile - Facebook connect bug? #368

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Steps to reproduce:
1. Use source for GraphAPI_Mobile_1_8.swc today 
2. Add it to a Adobe CS5.5; FLA project
3. Configured and Android 3.0 profile
4. After init - Call: 

FacebookMobile.login(handleLogin,stage,[],webView)

5. After facebook login and a few 302 redirects - this ends up being redirected 
(I can see this in - MobileLoginWindows.as - handleLocationChange to (I 
replaced the APPID)

https://www.facebook.com/dialog/permissions.request?_path=permissions.request&ap
p_id=APPID&redirect_uri=http%3A%2F%2Fwww.facebook.com%2Fconnect%2Flogin_success.
html&display=touch&type=user_agent&fbconnect=1&from_login=1&m_sess=A9SpI-6Ld3Qvb
z 

This results in an error being returned from facebook:

"This page contains the following errors: error on line 2 at column 224: 
EntityRef: expecting ';'

Below is a rendering of the page up to the first error (nothing else)

If I use the same URL in a browser (e.g. Firefox) it returns "success" so I can 
only assume that some http header setting (e.g. UserAgent?) is not set 
correctly - but I have no idea where to go from here. 

Any help suggestions would be greatly appreciated.

Original issue reported on code.google.com by lgcadeb...@googlemail.com on 13 Oct 2011 at 4:54

GoogleCodeExporter commented 8 years ago
Having done some more research - the only plausible explanation I can find is 
that in CS5 Professional the HTTP header variable:

[HTTP_ACCEPT_CHARSET] 

is missing and Facebook connect falls over because of that. 

Original comment by lgcadeb...@googlemail.com on 14 Oct 2011 at 9:35

GoogleCodeExporter commented 8 years ago
This seems like a very similar issue:
http://code.google.com/p/facebook-actionscript-api/issues/detail?id=353
Try the workaround suggested in the comments, in the latest API, you can 
specify the display type in the login method
FacebookMobile.login(callback, stageRef, extendedPermissions, webView, 'wap')

Original comment by edwar...@gmail.com on 14 Oct 2011 at 3:48