xviricel / facebook-actionscript-api

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

FacebookDesktop problem to upload to afan page #333

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Login  facebook 
2. Send a picture to a fan page using photos/
3. Pictures appear in my own album 

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

Picture go to an fan page album. Images are going to my album. 

What version of the product are you using? On what operating system?

Newest 

Please provide any additional information below.

Request code

var obj:Object = {id:'153820638027291' , message:"teste" , 
source:AppSetings.cUser.btMap.bitmapData , contentType:'image'};
FacebookDesktop.api('photos/' , handle ,obj ,'post');

Cheers

Original issue reported on code.google.com by pedro.ga...@gmail.com on 28 Jul 2011 at 5:47

GoogleCodeExporter commented 9 years ago
You'll first need to get an access token (via "me/accounts") to make a call on 
behalf of that page (assuming you're the owner, if not you can't post to the 
page's albums).

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

Original comment by rovertn...@gmail.com on 29 Jul 2011 at 10:37

GoogleCodeExporter commented 9 years ago
sorry to bring up again this old issue.

how exactly to use access_token from my page to upload the picture?

I'm using actionscript: 
FacebookDesktop.api('me/accounts', getPageAccessToken, null, 'GET');

and then got the access_token from the response object.

but how do I use next with:
FacebookDesktop.api('ALBUM_ID/photos', handleUploadComplete, values,'POST');
?

thanks

Original comment by barotoa...@gmail.com on 4 Nov 2011 at 2:59

GoogleCodeExporter commented 9 years ago
ok, i already sort it out...

for anyone had the same problem for uploading image to page..

after getting access_token for the target page using:
FacebookDesktop.api('me/accounts', getPageAccessToken, null, 'GET');
and get the access_token from response object

and then use the access_token as one of the params and use:
FacebookDesktop.api('ALBUM_ID/photos', handleUploadComplete, values,'POST');

hope it helps :)

cheers!

Original comment by barotoa...@gmail.com on 4 Nov 2011 at 3:46

GoogleCodeExporter commented 9 years ago
I am trying to accomplish something similar, but I want to upload the image to 
a page that the user does not manage. I see that someone above said this is not 
possible. Can someone confirm that this is not possible? Is there some 
documentation that states that this is a limitation?

Thanks!

Original comment by higgin...@gmail.com on 5 Dec 2011 at 7:37

GoogleCodeExporter commented 9 years ago
Thanks for this.

Higgin.. it´s not possible. Even if you go manually to fb without api... you 
can´t..

Original comment by gonmig...@gmail.com on 12 Dec 2013 at 1:31