bertrando / facebook-actionscript-api

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

Problem with uploading photo to concrete Album #172

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. On calling FacebookDesktop.api
2. not stores photo in album
3.

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

What version of the product are you using? On what operating system?
Flash Builder 4, Facebook Graph API 1.0, Windows 7 

Please provide any additional information below.

when I am trying to upload photo on mine created album, Facebook API 
thoughyetstill stores it in default folder (album)

http://developers.facebook.com/docs/reference/api/photo 

piece of code: 
var img:* = fileRef;
var values:Object = {message:'Work Shop', fileName:'FILE_NAME',image:img};
FacebookDesktop.api('/ALBUM_ID/photos', handleUploadComplete, values,'POST');

have any one solution about this issue??
thanks

Original issue reported on code.google.com by 22ro...@gmail.com on 12 Oct 2010 at 2:08

GoogleCodeExporter commented 9 years ago
Are you replacing ALBUM_ID with the actual album ID?

Original comment by alan...@gmail.com on 14 Oct 2010 at 6:32

GoogleCodeExporter commented 9 years ago
yes of course... : ))

Original comment by 22ro...@gmail.com on 14 Oct 2010 at 11:07

GoogleCodeExporter commented 9 years ago
no more idea about this issue :((((((

Original comment by 22ro...@gmail.com on 19 Oct 2010 at 11:36

GoogleCodeExporter commented 9 years ago
I've been working to find a solution for hours on this issue and I think I got 
it.
The ALBUM_ID is in fact the object_id of the concrete album.
To get the album parameters and know its object_id, use this : 
http://developers.facebook.com/docs/reference/rest/photos.getAlbums

Cheers

Original comment by maxwee...@gmail.com on 6 Nov 2010 at 10:21

GoogleCodeExporter commented 9 years ago
I have spent a while working on what is most likely this same issue. As far as 
I can tell, either there is a bug with Facebook, or it is not possible to 
upload photos via the new Graph API with ActionScript.

There is a bug for this issue in the Facebook bugzilla here:
http://bugs.developers.facebook.net/show_bug.cgi?id=13612

Essentially if this is happening to you, you'll see the following cryptic error 
using Charles or Fiddler:

{
   "error": {
      "type": "OAuthException",
      "message": "(#1) An unknown error occurred"
   }
}

I have been able to get my application to send photos using the latest php from 
Facebook, so I must assume there is some other issue happening here 
specifically with the Actionscript API.

Original comment by zomgforeelz@gmail.com on 21 Dec 2010 at 5:56

GoogleCodeExporter commented 9 years ago
A guy on my team just got this to work.  The key was to use the album's object 
Id, not the album Id.

var values:Object = {message:'My photo caption', 
fileName:'FILE_NAME',image:img};
FacebookDesktop.api('/ALBUMOBJECTID/photos', handleUploadComplete, 
values,'POST');

It uploaded the photo and placed it into the specified album.

-Mark

Original comment by mark.rus...@gmail.com on 4 Feb 2011 at 3:13

GoogleCodeExporter commented 9 years ago
And just a note, make sure you're using the latest Facebook Graph API (v1.5).

Original comment by rovertn...@gmail.com on 7 Feb 2011 at 5:15