I'm looking for the simplest way to upload a photo from a gallery on my server (i.e. I have the url to the jpg) to Facebook. The project is built in as2, and for hte life of me I can not find a solution.
I was thinking I could use a php script to upload it to facebook, but all the examples I find online are broken or too old. I could post the url to the php script and then the php could handle the rest.
I'm using CURL to upload files to a service. Currently I'm getting the file content with $GLOBALS["HTTP_RAW_POST_DATA"] then save it on my server. After that, I'm using CURLOPT_POSTFIELDS with the file's full path. Is there a way to send the file content directly, without saving it on my server, as if I saved it? Or is there a way to upload a Photo from a flash app to facebook album, without saving it on the server?
Iam trying tu upload image to facebook but it just dont work, doe's someone knows relaiable and working example, because everythig I use it don't work.[code]
I recently developed an Adobe AIR App, for uploading images to a Facebook User's Album,which worked well! But now, as I tryed to migrate the AIR App to an Flash App, which is supposed to do exactly the same, I am experiencing one problem:
Actually everything works fine: The App Initialization, The User Login & Permission (establishing a session), BUT: Once i make the call for uploading a BitmapData, I do NEVER get ANY response / the handler does never get called:
var values:Object = { message:'This photo was created by ProFileIzer', fileName:'filename', image:new BitmapData(50,50, false, 0xFF0000) }; Facebook.api('/me/photos', handleUploadCompleted, values, 'POST');
There is also a Flex sample provided, which I am not able to test, as I am using Flash. So if someone smart got any idea, or probably could test if the sample works..[URL]...
I'm trying to upload a photo on Facebook using Javascript SDK. In particular I generate a base64 encoded bytearray from my Actionscript3 app, I pass it to Javascript file using ExternalInterface, and from that I decode the bytearray and I try to upload to FB. But it give me this error: {"error":{"message":"(#324) Requires upload file","type":"OAuthException","code":324}}
I tried to upload an image simply from url, and in that way it goes well! This is my Javascript code: upPhoto:function(photo) { var img = F.decode_base64(photo); FB.api('/me/photos', 'post', { message:'test', fileName:'test', [Code] .....
I need to create an image upload app for our company's facebook page. I've been able to successfully create the app on facebook and it pulls from a location on our web server. Right now it's just an index.cfm file with hello world in it.We're having a photo contest and what we need to do is provide a quick form (name, email, phone, photo to upload, and photo description).When a user fills out the form and uploads the image, the image shows on our app with the description and then we are notified that someone has uploaded and image.
Do sites like facebook resize images before upload to save bandwidth?... or do they just get resized remotely, beause when i try and do it using gd library i have the problem that images wiht large dimenions timeout, whatever memeroy limit i set..
I need to have a photo upload option on a form i am creating in flash. I would like to do this with PHP and Flash 8.I am creating a form, where people can enter information, then include a photo which needs to be saved in a folder specified by a entry on the form.
I was just wondering that is there a way to create a multiple file select like Facebook (using flash, I think.) and with a progress bar that show every photos progress in one progress bar. Have a clue or a script which can be customized and can be used easily?
I want to upload new photo to picasa using picasa API
My code: ActionScript Code: var _loader:URLLoader; function uploadPhoto():void { _loader = new URLLoader(); _loader.addEventListener(Event.COMPLETE,startUpload); [Code]...
I'm currently building an application using the Adobe Facebook API and I've run into an issue where for the login method the Facebook login popup displays but when doing a Facebook share/post the popup is blocked.
This code works fine and displays me a Facebook login popup without question (Firefox):
I'm trying to determine the practical difference between using the com.facebook.session.WebSession and com.facebook.session.JSSession. The documentation ([URL]) has more around WebSession - but the example I have which is closest to what solution I'm trying to implement uses JSSession and it looks like I could avoid all of the JavaScript pass-through & ExternalInterface calls I'm making. It appears that the benefit of using this new ActionScript Facebook API is to avoid having to make all of the Facebook calls via JavaScript.
I have literally spent HOURS trying to solve this mystery... but simply can't seem to get hold of it. I am using the same code lines (literally!) as the example here (official adobe tutorial) and I get different result.
[Code]...
Everything works fine, i.e. everything till it is time to fire the loggedin event. I get asked to log in and all permissions are asked correctly. After I log myself in to facebook, the loggedin event doesn't fire. Is there any way of solving this problem??
i need to connect to have a button on my website that connects to facebook (if not already logged in) and posts to the users wall.I've only done this from within an iFrame - do i still need AppId etc etc?
I have a facebook application where the user choose 4 of his friends and then it creates a video (swf) with the pictures of your friends in it (loaded via xml). So I need to share this video on the user timeline. Everything works fine but the video is not embedded in the post on his timeline, there is only a post with the link to the page in it.The weird thing is, if I post the url directly on my timeline, the video is embedded, but not if the same link is posted via the application.here is my code called by the share button in js :
function postToFeed() { var obj = { method: 'feed',[code].........
I've recently used the 'Static HTML' application to add autoplaying flash content to a Facebook Page.Nothing too fancy, no sound, and only a few secs long. Now, Facebook say:-"Apps on Pages must not host media that plays automatically without a user's interaction."
What do they mean by 'Media' exactly? I can understand a ban on autoplaying audio content but does the ban extend to something as harmless as an animated GIF? Or more to the point, does an autoplaying .swf file fall under this?
Lastly, what course of action would Facebook take if I did violate this rule? Would they issue a warning (giving me an opportunity to remove the 'offending' item) or would they just shut down my page without any consultation?
I can't find in the Adobe Facebook API how to log the user out of Facebook. The FacebookSessionUtil (and the related sessions and Facebook classes) all have a .logout() function, which will invalidate the user's current *session* within the swf, but it doesn't log the user out of Facebook.
What am I missing here? How are you supposed to log the user out of Facebook with this API? Since it's part of the TOS for Facebook Connect apps, you'd think this would be available in the API somewhere.
Can you use the FileReference.upload() function to upload files to Sharepoint or do I have to use the SP web services? This is without adding your own ASP.NET Web Services, just using the built in SP Web Services.
I am creating flash uploader and want to start 10 uploadings at time.But flash upload only 2 files on domain at time, other references wait for something.In IE with ActiveX Player limitation is about 6 files at time.Is there any ideas how to change this limitation? For uploading I need to use FileReference.upload without creating URLRequest object from file data.
EDIT: Reworked my code a bit and decided to throw out URLLoader in favor of the ile.upload() method.Now I'm stuck again >_<Here's the code I currently have, stripped down to bare-bones:When I drag-drop image files onto my app, here is the trace log that gets returned to me:
Okay, so I am calling my scripts from the folder "php/" Thus, my FileReference calls "php/upload.php" to upload. However, my uploads are in "uploads/" and not in "php/uploads". When the PHP script is called, it apparently ignores the caller (the SWF file) and looks for uploads in its own directory (the "php/" folder). It may be a PHP question, but how do I reference the uploads folder as being in the parent directory of the php files in my PHP script?
After I upload a photo on a desktop facebook application i need to store it's post id in a database. From the facebook ActionScript SDK documentation:pi() methodpublic static function api(method:String, callback:Function, params:* = null, requestMethod:String = GET):voidMakes a new request on the Facebook Graph API.Parameters [...]callback:Function — Method that will be called when this request is complete The handler must have the signature of callback(result:Object, fail:Object); On success, result will be the object data returned from Facebook. On fail, result will be null and fail will contain information about the error.
So I implemented my callback function as follows: protected function handleUploadComplete(response:Object, fail:Object):void{ status = (response) ? 'Success' : 'Error';
its for a photo gallery that I downlowded,the images fades in and out, but only start that when you click a button(timer).I'm trying to founf out where in the script I can change this, so that the photo's start automatically,rather than, on a button click.I have pasted the script below, is that ok, or would people rather a zip file of the files?
// (c) Copyright by Andrew DiFiore. All rights reserved. DO NOT REMOVE. fscommand("allowscale", "false"); Stage.scaleMode = "noScale";[code]......