Actionscript 3 :: Load Profile Image From Facebook

Oct 19, 2010

I'm trying to load profile images (friend images) from Facebook with AS3 but I seem to be running into a security issue.I'm currently using the "official" Adobe Facebook API for Actionscript 3 which works fine. However, I seem to be having trouble loading profile images when running my application in a browser. The images load fine when running in the Flash IDE.The images are being loaded from URL... and there seems to be a crossdomain.xml policy on that domain:[code]

I just noticed that when I visit one of the images in a browser that I'm actually redirected to Facebook's CDN where the actual image is stored. When I hard-code the image url with the redirected URL I can load the image in the browser. It seems that this is not a security issue after all but a redirection issue.If this is a redirection issue then the question would become; How can I have Flash Player load an image from a redirected URL?It seems that the URLRequest class has a followRedirects property which is only available in AIR.I'm currently using a PHP script to get me the redirected URL as a work around but this of course is far from ideal and potentially a big strain on my server.

View 6 Replies


Similar Posts:


Actionscript 3 :: Load A Facebook Profile Picture With Loader()?

Mar 3, 2011

I'm having trouble passing the url for a users facebook profile picture to a Loader() variable. I'm using a PHP file to get around the security and from the debug I made, it shows that I'm getting the URL fine, but the Loader runs the error event listener. Here is what my facebookProxy.php file looks like;

<?php
$path=$_GET['path'];
header("Content-Description: Facebook Proxied File");

[code].....

View 2 Replies

AS3 :: Loading Facebook Profile Pictures / Can't Load Certain Images

Jul 6, 2011

As the title says im trying to load Facebook profile images into flash using AS3,now im pretty far with this but i hit a blockade.[code]Im obtaining the friends list of the current user through some PHP a friend of mine wrote, and accesing their ID's, which i use to load their profile images.

View 1 Replies

Actionscript 3 :: Getting Actual Facebook And Twitter Profile Image URLS For Flex Security Policy?

Oct 25, 2011

I'm trying to display the profile images from both facebook and twitter. For facebook, the URLs I'm receiving are something like this (not actual urls):[URL]... Which is then redirected to the 'actual' url like this:[URL].. I'm also doing this with twitter, with the same issue (redirected url).

So, when I load the image, it loads fine. But when I close the container that the image is in, then I get the security sandbox violation. I can get this all to work if I add the URL from the 'actual' image url like this:

[Code]..

View 1 Replies

Uploading Files In Flash 10 On A Facebook Profile?

Feb 16, 2010

I am developing a facebook application which sits in an application tab.The app is developed in flash and as such must use fb:swf to embed the swf.Therefore it sets allowScriptAccess = never on the swf.There are 3 things that I will need to do, and I am not sure if it will be possible.1) Load external SWF files into the parent swf2) Load dynamic XML from the server3) Upload files to the serverI am using flash 10.

View 1 Replies

ActionScript 3.0 :: Posting To Facebook Fanpage Instead Of Profile?

Nov 8, 2010

I am trying to create a facebook application that will allow me to post to a fanpage wall once installed. to be honest i am a newbie when it comes to actionscript and am just looking for a simple solution. I have set one up that allows me to post to a personal profile but dont know how to do so for my fanpage.

View 0 Replies

Flash :: Post A Facebook's Profile Wall Into A Site?

Feb 1, 2011

Someone have already done this? I have a solution in mind, but I don't tried yet. Before trying i'm wanna know if it's possible.

My solution is just posting a wall into an html page and getting the source of page in Flash and parsing it.

View 2 Replies

Flash Image Maker - Create An Image Maker Like The One On The High Scool Musical 3 Profile ?

Sep 17, 2009

how to create an image maker like the one on the High Scool Musical 3 profile on Bebo http:[url].....

View 1 Replies

Actionscript 3 :: Facebook API - Can't Retrieve Image From Event Object After Image Loads?

Mar 13, 2012

I am getting a mysterious result when trying to load profile images from a logged in Facebook user's friends list into an as3 canvas app. In pretty much every (non-facebook) application I've made where loading an image is required I use the following:

private function loadPic():void
{
var url:String = Facebook.getImageUrl(_friendslistObjectArray[_loadCount].id);
_picLoader = new Loader();[code]............

I can't retrieve the image from the event object,and I am given no error at all.It all just fails silently.If I remove the line var image = evt.target.content, the process runs through the whole array.I can't think of any reason this would occur. Furthermore, if I look in firebug's net activity, I see I see the images get loaded as long as I do not have the line I just mentioned included. I just can't seem to get the image data from the event object to add it to stage or a container movieclip.

View 1 Replies

Flash :: Adobe Facebook API Facebook.login VS Facebook.ui Popups?

Oct 24, 2010

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):

var permissions:Array = ['publish_stream'];

Facebook.login( onFacebookLogin, { perms:permissions.join(',') } );

However, the following code running in the same application throws up a popup blocker (again Firefox):

Facebook.ui( "stream.publish", "popup", params );

Does anyone know of a work around this issue to make the share popup come up just like the login popup?

View 2 Replies

Flex :: Flex - Long Image Links Of Facebook Is Not Working In Mx.image.souce

Aug 11, 2010

I am creating one desktop application of facebook.

So here I am getting streams from facebook post. So when any facebook application's long image link I am getting that I can't display in Image container, this is not displaying image.

One also fact is that, When I am giving this link directly then it is working.....

When I have seen this in Charlse Debugging proxy then it is displaying 403,Forbidden error of image.

View 2 Replies

As3 :: Posting Image To Facebook With Flash?

Mar 30, 2012

Posting Image to Facebook with Flash?

View 1 Replies

ActionScript 3.0 :: Image Sharing On Facebook?

Apr 1, 2012

how I can share an image on facebook using AS3.... eg using BitmapData or something similar...

View 5 Replies

ActionScript 3.0 :: Upload Image To Facebook

Mar 30, 2012

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]

View 1 Replies

Professional :: Using Adobe's Facebook API To Upload Image?

Dec 16, 2010

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]...

View 1 Replies

ActionScript 3.0 :: Get Text / Image From Facebook And Merge In SWF?

Feb 21, 2011

I am developing an Flash application, that is going to interact with a facebook application. It is supposed to get text and image from the facebook application and merge in an swf for the facebook Surfers. I wanted to ask what is best way to accomplish this?

1. Ask for the FaceBook app to save the Image and text in an SQL DB, for a webservice to pick?
2. Drop it in the root of application and pick it with a web service?
3. Send directly to the webservice?

View 1 Replies

JavaScript :: Upload ByteArray Image On Facebook With SDK

Apr 14, 2012

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] .....

View 1 Replies

Actionscript :: Flex - Facebook Get Url Of Uploaded Image

Aug 21, 2011

using the latest facebook actionscript library, I upload an image using: Facebook.api('me/photos', etc...) it returns an ID, which method would I call to get the url of the uploaded image?

View 1 Replies

Facebook :: Make The .swf Extract The Image Source From The Xml?

Nov 16, 2011

I want to make a simple .swf file with an image. The source of the image is not fixed but dynamic. It should be a user's profile pic on facebook [URL]. I can get the user facebook id's dynamically with a php file that generates XML. How do I make the .swf extract the image source from the xml?

View 1 Replies

Php :: Uploading Image To Facebook Through External Script?

Jan 30, 2012

I've developed a Flash quiz app for facebook, which calls for a php script silently upon completion. The php script's function is to generate an image from the POST data sent by the flash, and then post it to the user's wall.That would be all neat and dandy, but for some reason the image never gets uploaded, probably because when i call it, it's like [URL] and the facebook SDK script inside gets an Oauth error, probably because it is not embedded in their canvas.

If I'd like to have my php script generate an image and upload it to the fb wall, then how should I call it from the flash?This is the AS2 code I'm using currently:

callRemoteFile = function(ourVariable:Number) {
var result_lv:LoadVars = new LoadVars();
result_lv.onLoad = function(success:Boolean) {

[code]....

If I simply navigate to the php with my browser it giver me this:

Fatal error: Uncaught OAuthException: Invalid OAuth access token signature. thrown in /home/a01223445/public_html/appfolder/base_facebook.php on line 1039

If I view the same php through facebook canvas it works perfectly. My problem is: The canvas will show the flash and I want the php to silently be evaluated while the flash is running.

View 1 Replies

IDE :: CS4 - Create An Image Upload App For Company's Facebook Page?

Jun 18, 2010

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.

View 1 Replies

Professional :: Load Facebook News Feed In Flash?

Jan 26, 2011

Is there a way to perfectly load a Facebook News Feed inside Flash?Haven't been able to find anything so far..

View 5 Replies

Flash :: Facebook Fb:swf Stops Working When Load An As2.0 Object In As3.0

Dec 12, 2009

I'm using the gskinner.com bridge to load and talk between a as2.0 object in as3.0 . The library works smoothly. If I upload the html it works smoothly. But when I embed it as using fb:swf on facebook, the as2.0 object stops loading, any clues?

View 1 Replies

Actionscript 3 :: Failed To Load Swf On A Facebook Iframe Application

Feb 12, 2010

I'm currently learning how to make facebook apps, and I've hit a problem. Usually when I make flash applications, I can use the index.html and run the swf from a webserver. However, I tried to make a facebook iFrame app using the same setup, all I get is the Alternative Content Text [URL]

View 2 Replies

Flash :: Load Facebook ID Vars Into Client Side Scripting?

Sep 2, 2011

I'd like to simply display the users name and photo inside a flash app. I hope to do this only in the client without using any backend scripting. The ActionScript 3 SDK for Facebook Platform is under construction for the next few weeks to comply with new facebook requirements so I don't trust the current build to be useful.

We have searched and built tests for a week with no luck. I have a feeling the answer is either very simple or not possible.

View 1 Replies

Actionscript 3 :: Ensuring Crossdomain Policy Files Have Been Retrieved For All Facebook Image Servers?

Aug 10, 2010

I've recently started putting together a Facebook Connect AS3 app and retrieving objects and images through the Graph API.Running anywhere but locally, I receive security errors of the form: SecurityError: Error #2122: Security sandbox violation: Loader.content: xxxx cannot access url...A policy file is required, but the checkPolicyFile flag was not set when this media was loaded.If I add a line of the form:[code]One thing I'd considered was retrieving the crossdomain policy file on a per image basis, capturing the domain from the image URL before making the image request. Unfortunately, at least via the Graph solution (and I haven't looked too closely at the others), their servers resolve the image url after the request is made, from something more generic like: url...Has anyone found a more dependable means of ensuring that images can be retrieved without security sandbox violations? Or do Facebook maintain a definitive list that developers need to keep an eye on?

View 1 Replies

Flash :: Facebook Connect And Actionscript - Make All Of The Facebook API Calls Via JavaScript

Jun 1, 2009

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.

View 5 Replies

Actionscript 3 :: Facebook Login Handler Doesn't Get Fired In Flex4 Facebook API?

Mar 13, 2011

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??

View 1 Replies

Flex :: Using A Widget For Facebook Application - Get The Current User's Facebook ID?

Sep 24, 2009

I am using a Flex widget for my facebook application. How can I get the current user's facebook ID?

View 1 Replies

Facebook :: Flash - Connecting To Facebook From A Remote Website With OAuth2?

Jan 13, 2012

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?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved