facebook image uploading using as3

I am getting this error while we are uploading image to facebook.And i am given the permissions.


   "error": {
      "message": "An active access token must be used to query information about the current user.",
      "type": "OAuthException",
      "code": 2500

This is my as3

var params:Object = {image:img, message:'vcxv', fileName:'vcxvc',name: 'My Card'};
Facebook.api('/me/photos', onSaveToPhotoAlbumComplete, params, "POST");

Please help me.


You have to add an Access Token to Object:


var params:Object = {image:img, message:'vcxv', fileName:'vcxvc',name: 'My Card', access_token:Facebook.getAuthResponse().accessToken};
Facebook.api('/me/photos', onSaveToPhotoAlbumComplete, params, "POST");

Need Your Help

Comments in MIPS accurate?

assembly mips computer-architecture qtspim

Are my comments for this MIPS program accurately explaining what each statement line is doing?

What are valid deviceNames for Chrome emulation testing with Protractor?

javascript google-chrome selenium protractor selenium-chromedriver

The common web consensus seems to be that if you see a name in your chrome emulator, you can use it as-is in your protractor config ... so I tried Apple iPad: