Actionscript 3 :: Adobe Facebook API Calling "/me/picture" Fails?

Oct 21, 2010

I'm using the official Adobe Facebook API in my Flash/AS3 application and for some reason the call the /me/picture seems to fail whereas the the call the /me/friends seems to work just fine: This works OK:

Facebook.api('/me/friends', onFriendsLoaded );
protected function onFriendsLoaded( response:Object, fail:Object ) : void
{[code]...............

I'm calling both methods right after each other.

View 2 Replies


Similar Posts:


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

ActionScript 2.0 :: Calling A Picture Into A Target In The Movie Without Placing The Picture Inside An Swf File?

Mar 22, 2003

I recently used the loadMovie action to load a .swf file to a target in the movie which it was being called from. Then I tried calling a picture to another target in the movie, but it did not load the picture as intended. I read about it on my book, but it didn't seem to work. Is there anyways on calling a picture into a target in the movie without placing the picture inside an swf file?

View 7 Replies

ActionScript 3.0 :: Using The Adobe Facebook API To Logout Of Facebook From Swf

Sep 24, 2009

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.

View 0 Replies

Flash :: Facebook Pay.prompt Callback Fails In IE With Wmode=window?

Mar 12, 2012

My Flash app calls:

Facebook.ui("pay.prompt", data, onPayCallback, "iframe");

which works correctly on all browsers, until a recent change in the embedding of the swf file. I now use wmode="window" which gives much better performance in IE (previously I used "opaque").When the facebook credits popup appears, the game is now hidden as expected. It returns correctly when the popup is closed. However, on IE (version 9, other versions are untested) the callback is never called.

View 1 Replies

Actionscript 3.0 :: Calling Function In Content.swf From JavaScript Fails?

Dec 22, 2009

ARCITECHTURE:the way I've set up this Flash doesn't work properly.in my html I load a preloader.swf.this preloader.swf is build with ActionScript in the first frame.this preloader.swf loads a content.swf this content.swf is build with ActionScript in a Document Class...

everything works properly this far.MY PROBLEM:my problem comes when I - using JavaScript - try calling a function in my content.swf the function I try to call is this:

public function playThisMovie(theMovieToPlay:String):void {
var newM:String = theMovieToPlay;
ExternalInterface.call("alert", "the new movie is = "+newM);
}

when calling this function nothing happens, even though I know the function exists..can it be, that I cannot call my function because it is inside my content.swf..and if yes, is there a workaround I can use?

View 6 Replies

ActionScript 3.0 :: Calling A Function In A Swf With TLFTextField From An External Program Fails

Jul 6, 2011

I have a program A that loads another swf B, and after B is loaded, A will call a function of B.It used to work when B creates a TextField and uses TextFormat, but when I changed to creating a TLFTextField, I got this error:[code]I got Error #1069 again, but when I changed TLFTextField back to TextField, it works again.Test A can now find the function "changeText()" in Test B.

View 8 Replies

Flash :: Take A Picture From User's Webcam Ala Facebook?

Sep 25, 2010

I didn't find a recent question so somethign might have changed:

there is any widget, ready to use, to integrate with my website in order for my users to take a picture of themselves ala Facebook when they register to my site? i guess is Flash/flex based

View 2 Replies

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

Adobe Flash Builder Http Data Service Call Fails Only After Export?

Dec 8, 2011

I wrote an app using adobe flash builder that makes an http data service call to a website.

When I build and launch the app it loads in my browser (the address in the broswer is C:Userspath omyapp.html) and works perfectly. However, when I upload the app to my website or even launch it from outside the project build directory, the HTTP service call fails with the popup

Security error accessing url
Destination: DefaultHTTP

Of course I googled this error and realized it may have something to do with a 'crossdomain.xml' in my web root directory. I tried this and it continued to fail.
Below was my crossite domain file

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="www.my_domain_for_http_service.com" />
</cross-domain-policy>

I'm using the free trial version of Adobe flash builder, but I do not see anything indicating that this has to do with the error.

Data from http service call is in xml format.

View 1 Replies

Flash :: (wmode=window) Disappears After Calling Facebook Dialog?

Sep 7, 2011

We are writing app for facebook. It's a game written in flash and embeded with wmode window.We get problem with Firefox 6, but only on Windows XP. When user invoke some facebook dialog (for example: pay dialog or buying more credits dialog) flash disappears. This same happens when user click on notifications (globe icon in top facebook menu) and hold it for a while (however this is not so important).After flash disappears it it still in DOM as <object>.

View 1 Replies

Flex :: Possible To Implement Facebook In Adobe?

Feb 13, 2010

I am considering creating a website with the complexity of Facebook that should be able to scale into the millions of users. My question is: Is there any reason not to use Adobe Flex for such large project apart from the obvious point of requiring everyone to have Flash installed and not having to rely on Adobe? In my view Adobe Flex would reduce the server load for Facebook, because more of the work could me done on the client side.

View 7 Replies

ActionScript 3.0 :: Adobe Facebook Connect API

May 25, 2010

I've started to work on a project that requires facebook connect to invite friends to a website and register. So I downloaded the facebook api classes from adobe, but I have never worked with flash and facebook connect before. So if anyone of you can get me started would be great, not many examples for this on the net. I want to to log in to facebook, get the friends list with pictures and send invitations.

View 0 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

Flex :: Make Facebook Application Using Adobe Air?

Jun 22, 2011

I know that we can make application using Adobe air that will run on mobile, desktop and web environments. Can we deploy same application on facebook? like we do with other flash applications.

View 1 Replies

ActionScript 3.0 :: Adobe SDK For Facebook: External Web Apps With No JS?

Apr 14, 2011

I am developing a game and using the official "Adobe AS3 SDK for Facebook platform" libraries to connect it to facebook.In the libraries, you have two options for connecting to facebook, via the Facebook.as, and the FacebookDesktop.as.The Facebook.as is meant for Facebook Canvas and Web deployment, and it assumes the Facebook Javascript to be embedded in the page that has your .SWF.

However as we all know, games are frequently redistributed, just by taking the .SWF and posting it elsewhere, where most likely it wont have the Facebook Javascript embedded in the page.My question is, that in these situatins, is it a good idea to use the FacebookDesktop.as instead? IE detect the URL, and if we are on 3rd party Website, then use the FacebookDesktop.init() etc methods instead of the Facebook.init() ones?

What do you think? Are there any big disadvantages or a better way of doing it?

View 2 Replies

Javascript :: Loading Facebook ActionScript Library In A HTML Adobe AIR App?

Mar 8, 2010

I'm writing an Adobe AIR app using plain HTML which needs to upload photos to Facebook. I don't think Facebook's JavaScript/Connect library includes photo uploading functionality, but their ActionScript library does. However, I'm having trouble loading the ActionScript library into the HTML page.

Adobe's documentation describes the process of loading ActionScript libraries into HTML AIR apps, which I tried using the compiled Flash library available here (specifically, Facebook_library_with_AIRConnect_v3.4_flash.swc). So my page looks something like:

<html>
<head>
<title>Hello World</title>

[code]....

Is the compiled library file I used the wrong one (do I need a .swf instead of a .swc)?If so, do I need to create my own compiled library somehow from the ActionScript source?Is the namespace I'm using incorrect? (in addition to com.facebook.Facebook() I tried .Facebook(), .fb.Facebook(), .facebook.Facebook(), etc)Should I just give up and try to learn Flex instead?

View 1 Replies

Facebook :: List Of Friends To Show Up In Adobe Flex Application

Nov 1, 2011

In an application I have created (web) I need to list out my facebook friends within a canvas (or any container) along with their profile pictures.

I am using Flash Builder 4.5. I have also managed to set up AIR app (using the samples) so I am not sure if I am on the right track.

The requirement is :

When each user logs into the site his/her friends list should appear in the frame along with the friend's profile pictures.

View 1 Replies

Professional :: Change The Background To A Picture On Adobe Flash CS4?

Apr 23, 2010

how do make it so no matter how big my stage is, my background will tile on the stage AND off the stage forever and ever and ever and ever?

View 3 Replies

ActionScript 3.0 :: Uploading A Picture Using FileReference And Adobe's PHP Script?

Jan 12, 2011

I need to upload a picture to the server. I found from Adobe's website a PHP script that will receive the POST data. I tried to put the link to the script but this forum won't allow due to my limited amount of posts. You can find the web site by putting these exact keywords in Google: "Adobe Flash Platform * Using the FileReference class".It will be too messy to post the entire code but the most essential code should be this one:

Code:
var fileTest:FileReference = new FileReference;
fileTest.addEventListener(Event.SELECT, fileSelect);

[code]....

View 3 Replies

Facebook :: Calling The Javascript And Change The Text In The HTML Page - Error #1033: Cpool Entry 36 Is Wrong Type?

Feb 9, 2010

i use FBML for the FB application.I have a flash and the flash suppose to call a javascript on the page. I read so many websites trying to figure it out but still having problem.Here is the Webpage with the javascript:

<fb:fbjs_bridge/>
<div id="swfContainer"></div>
<script>[code]....

when i test, the flash loaded. The code goes through everything and show "SENT" in the flash text box. However, it doesn't seem like it is calling the javascript and change the text in the HTML page.is there something wrong I did? i try the ExternalInteface.call method but doesn't work neither. ALSO, when i run it in FireFox, not error popup.however, when i run it in IE, I got this:

VerifyError: Error #1033: Cpool entry 36 is wrong type.

ReferenceError: Error #1065: Variable FBJS is not defined.

View 1 Replies

ActionScript 2.0 :: Make A Picture Gallery And Use Buttons That Move You From Picture To Picture And Backwards?

Apr 22, 2002

I want to make a picture gallery and use buttons that move you from picture to picture and backwards, but I don't want to tell button 1 to go to frame 2 and button 2 to got to frame 3 and so on (I hope you know what I mean)Can I use on button on a separate layer with the same action set? I tried something like that, but it didn't work:

on (release) {
thisframe =+1
}
[code]........

but it didn't work. I'm kind of new to any action script other than gotAndPlay, easy functions and all that.

View 2 Replies

Use Any IPC Mechanism For Calling A C++ Api From Adobe Flash?

Sep 10, 2010

Is it possible to use any IPC mechanism for calling a c++ api from Adobe Flash actionscript? Are there any good examples?

Update: I primarily want it for desktop apps now i.e Adobe's/or anyuone else's desktop runtimes

View 6 Replies

Flex :: Adobe Calling MXML Functions?

Jul 16, 2010

i allready searched abit around here and found the solution to call a fx:script function defined in a mxml from a AS class.

[Code]...

View 7 Replies

Flex :: Upload - Adobe Flex Mobile Selecting Image From Camera Roll Or Taking Picture Restarts The Application

Jan 19, 2012

I have a flex mobile application that I am working on that I am having issues with selecting an image from roll/taking a picture. My application is not tabbed, however one part of it contains a Tabbed View Navigator with tabs across the bottom. Within one of those tabs, I have the ability to upload an image to a webservice that I have created. However, when I select an image or take the picture, it pops back out to the initial splash screen and the application restarts. If I use the component standalone (outside of the tabbed view navigator) it selects the image and uploads without any problem.

[Code]...

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

Facebook :: Flash - Post Swf With Parameters To Facebook Via Application?

Apr 4, 2012

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

View 1 Replies







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