xviricel / facebook-actionscript-api

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

Deleting application request #393

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. login user and get application request ids
2. create full request id and callback function
3. call Facebook.api(full_request_id, callback, "delete", "POST");

What is the expected output? What do you see instead?
I see the following Error:
Exception fault: ReferenceError: Error #1069: Property access_token not found 
on String and there is no default value. at 
com.facebook.graph.core::AbstractFacebook/api()[C:\Users\facebookGraphApi\api\co
m\facebook\graph\core\AbstractFacebook.as:134

What version of the product are you using? On what operating system?
1.8.1 / Mac OSX

Please provide any additional information below.
The code at line 134 in the AbstractFacebook.as reads the following making the 
Exception fault logical as the script at that point tries to access the value 
of params which is now the String "delete":

if (params.access_token == null) { params.access_token = accessToken; }

Question:
How to delete an application request using the fb-actionscript-api ???

Original issue reported on code.google.com by antoine....@gmail.com on 9 Dec 2011 at 1:30

GoogleCodeExporter commented 9 years ago
Found the answer. 
Use Facebook.deleteObject(method:String, callback:Function = null) instead of 
Facebook.api()

Original comment by antoine....@gmail.com on 9 Dec 2011 at 3:21