GRiMe2D / facebook-actionscript-api

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

grantPermissions returns vague error in AIR #131

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Using Facebook_library_with_AIRConnect_v3.4_flex.swc
session = new DesktopSessionHelper(apiKey);

after successful login:
1. call session.hasPermission(ExtendedPermissionValues.PUBLISH_STREAM, true);
or call session.grantPermissions([ExtendedPermissionValues.PUBLISH_STREAM]);

causes the following error:
type: facebookEventError
errorCode: NaN
errorMsg: Getting Permissions Failure
rawResult: null
reason: null

This is a new error, this app has been working perfectly until a couple days 
ago, then it just 
stopped returning errors instead of grant permissions results.

Face book recently fixed a bug with the permissions window for the web, not 
sure if this is 
related. I am submitting a bug to the facebook bug tracker as well.

Once in a while I get a weird permissions window with an "Okay" button that is 
un-clickable.
see attached.

Original issue reported on code.google.com by toddof...@gmail.com on 27 Feb 2010 at 1:05

Attachments:

GoogleCodeExporter commented 9 years ago
Just found a work around, 
The issues is because ExtendedPermissionValues.CREATE_LISTING does not exist in 
the json fql query, so an 
error returns and none of the permissions are gathered. The work around is to 
create a new variable called 
allPermissions (array) containing all of the extended permissons that are 
important to your app (excluding 
"create_listing") then overWrite DesktopSessionHelper.allPermissions. Luckly it 
is a public variable. Then 
everything else works as normal.

Original comment by toddof...@gmail.com on 27 Feb 2010 at 6:24

GoogleCodeExporter commented 9 years ago
thanx,had the same issue,overwriting the allPermissions fixed it for me

Original comment by niek...@gmail.com on 3 Mar 2010 at 1:23

GoogleCodeExporter commented 9 years ago
Big thanks.  That saved me a bunch of time.

Original comment by Typi...@gmail.com on 21 Apr 2010 at 12:08

GoogleCodeExporter commented 9 years ago
Thanks. Worked like a gem.

Original comment by NickHard...@gmail.com on 14 Jun 2010 at 3:03

GoogleCodeExporter commented 9 years ago
thanks! comment out DesktopSessionHelper.as line 80 

//ExtendedPermissionValues.CREATE_LISTING,

did the job, working again!

Original comment by katopz on 29 Jul 2010 at 7:43

GoogleCodeExporter commented 9 years ago
Ah Facebook. I've fixed this in the latest push: 
http://github.com/ahmednuaman/Facebook-Actionscript-API

Original comment by ahmednuaman on 11 Aug 2010 at 7:42

GoogleCodeExporter commented 9 years ago
New release based of Facebook's Graph API is coming soon.  SDK which this issue 
depends on is no longer supported by Facebook.

Original comment by alan...@gmail.com on 29 Sep 2010 at 7:50

GoogleCodeExporter commented 9 years ago
New release based of Facebook's Graph API is coming soon.  SDK which this issue 
depends on is no longer supported by Facebook.

Original comment by alan...@gmail.com on 29 Sep 2010 at 7:50