Flex :: Facebook API Javascript Not Defined?

Nov 16, 2011

I have a flex app using the facebook js bridge to log in, and I am trying to pass the users name back to the app, but I am coming across the thing that I will explain after the code:

function getFriends() {
var nameOfPlayer = "";
FB.api('/me', function(response) {

[code].....

View 2 Replies


Similar Posts:


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

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

JavaScript :: SWF Object - Play Song Function (Not Defined)

Sep 4, 2010

I'm trying to have JavaScript call a function from my ActionScript.

ActionScript:
import flash.external.ExternalInterface;
ExternalInterface.addCallback( "playSong", playSong );
function playSong():void {
var _sound:Sound = new Sound();
var _request = new URLRequest("music.mp3");
_sound.load(_request);
_sound.play();
}

JavaScript:
swfobject.embedSWF('[URL]', 'musicplayercontrol1', '1', '1', '9', null, null, {
allowScriptAccess: 'always', wmode: 'transparent' }, { }, function( e ) {
document.getElementById('musicplayercontrol1').playSong();
});

I keep getting a function not defined from firebug. I tried having the song play as soon as the swf load, and that works for sure.

View 1 Replies

Javascript :: Soundmanager2 IE Playback - 'onload' Callback Function Is Defined As Null

Apr 5, 2012

I'm currently working with soundmanager2 in an IE/flash context (not html5). The issue is that audio playback of mp3 content does not occur for the following case where the 'onload' callback function is defined as null OR as a function that does almost nothing.

[Code]...

View 1 Replies

Javascript :: Graphs In A Facebook App?

Nov 14, 2009

I've been messing around a bit with a Facebook application for a while now, which is using FBML. A need has arisen to integrate graphs to display data. From what I can tell my options would be one of the following:

Find a Flash Graph that doesn't require a JavaScript library to work Convert the application to an IFrame application, and hope that Facebook wont break the Graph JavaScript Generate the graph serverside with GD or ImageMagick I would preferably not go with option 3, due to how boring generated graphs look, and serverside load.

Does anyone have any opinions or suggestions on how I would best solve this?

View 2 Replies

Javascript :: Interact With Facebook, Using The SDK?

Feb 17, 2012

I'm triyng to use the Facebook AS3 API but it's actually inconsistent. Frustrating.I'm thinking to use the Javascript SDK, from an Flash/AS3 based app, using the ExternalInterface object, and the addCallback method...

View 1 Replies

Using Facebook Fanbox (javascript) With Flash

Mar 19, 2010

Has anyone successfully included the facebook fanbox in a flash website? I just do basic stuff on the side and I have created a flash website for my buddys company. He wants to incorporate the facebook fanbox into one of the pages. Facebook has a code generator that outputs something like this:

<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/en_US" type="text/javascript"></script>
<script type="text/javascript">FB.init("API_KEY", "");</script>
<fb:fan profile_id="YOUR_PAGE_ID" stream="1" connections="10" width="300"></fb:fan>
<div style="font-size:8px; padding-left:10px"><a href="VANITY_URL">PAGE_NAME</a> on Facebook</div>

Is there a way to incorporate this into flash? The other option they have is iFrames. I have never heard of this, but it looks like this:

[Code]....

View 2 Replies

Javascript :: Facebook Flash App Cannot Communicate

Nov 27, 2010

My index.php file loads the Facebook JavaScript SDK and the FBJS bridge:[code]When I run this file on my server, I can communicate with Facebooks JavaScript SDK either indirectly through ExternalInterface calls, launching various Facebook UI dialogs etc. And I can also use the facebook-actionscript-api to launch the same dialogs directly from ActionScript.When I however use this index file as my Facebook canvas url and load the swf in a Facebook iFrame, the communication crashes the application. I'm not sure how to debug this but I think it might have to do with crossdomain security. Any ideas on debugging and/or solutions are welcome.

View 3 Replies

Javascript :: Post A Slideshow In Facebook?

Jul 24, 2011

Is it possible to post a slideshow in your facebook newsfeed only using HTML/Javascript/CSS ?I think it is possible to post a slideshow using flash. But I'm hearing that FB is in the process of depreciating FBML, will this affect flash content too?

View 1 Replies

Javascript :: Why Isn't Facebook App Publicly Visible

Nov 13, 2011

I have completed my Facebook application yesterday and users can't see it in Facebook search nor direct link. It just shows "page not found", so how to publish my application and make it public for all Facebook users?

P.S. : its working good with me and I can see it in Dunes Lounge and in developers app also.

View 1 Replies

Javascript :: Facebook - Get Root Page Url?

Dec 2, 2011

i am developing facebook application, and i need to get the facebook root page url not iframe, all these methods: document.location,window.location and top.location... return the iframe url ( my hosting server ) not facebook url.

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

JavaScript :: Friends Invite For Facebook HTML

Oct 23, 2010

How can I add in my facebook application invite friends. First of all I use actionscript, in order to handle invite issue I searched so many sites but I've got nothing, cuz facebook doesn't support invite actions. then I learnt that javascprit can handle this, however I couldn't find anything valuable about that

View 1 Replies

Javascript :: Adding A Widget In Facebook Wall?

Feb 6, 2011

How do I add a widget to Facebook wall? So when a user clicks on wall post, it gets opened there only, like YouTube video/audio.

It's certainly possible, as Slideshare app [URL] does it.

And, I see that it's a Flash component. I have an iframe (Javascript/html) widget.

View 1 Replies

Javascript :: Facebook App Inside Users Wall?

Mar 19, 2012

Is posible to build a site like youtube, that when is shared in facebook users can run the app (in this case the video player) in the user wall without enter to the youtube page. if is posible, this is only for videos?... can i get an interactive app, like a game do the same. this can be only achieved using flash? or there is any way to do it using HTML5?

View 1 Replies

ActionScript 3.0 :: What Is The Difference Between The Facebook Session Returned From The Javascript Api

Feb 6, 2011

I'm having a hard time understanding the logic here.... What is the difference between the facebook session returned from the javascript api as opposed to the one retrieved from AS3 Facebook api when your application is in facebook. I ask this because When I login via invoked via pure javascript or already logged in the permissions are sent to me as well however AS3's FacebookSession.availablePermissions continues to be an empty array Login invoked via flash will however return the availablePermissions Whats the difference in login invocations?

View 5 Replies

Javascript :: Facebook Signed_request Data And Some Security Concearns?

Dec 28, 2011

We've just developed a small Facebook puzzle that people win some gifts from our customer. I'd like to ask a few questions since I'm pretty stuck despite tried lots of things. First I'd like to write what we have and then will explain our problems.oot of application (/) checks for signed_request in POST params, extracts information from it to see if we've registered the logged in user into our database. This checks are also used to understand if the request is sent from Facebook or not to prevent requests coming outside of Facebook. (will write why we want this)Once the application is successfully rendered, Facebook JS API takes place, does its checks and sets the fbsr cookie. We use that cookie information while processing ajax requests to check if the request really belongs to the logged in user (e.g.: scores being sent for a user belong to the logged in user).

We implemented CSRF protection and another protection to check if the requests are POST and more specifically AJAX requests and return 40x if not.nd out that some people seem to take advantage of this bug.One way I thought of is to ignore all requests except coming from Facebook. Since the ajax requests are blocked (cross site) we should have been safe. However this leaded to another problem that, once we redirect users to e.g. leaderboard the signed_request data is lost and our index page returns 40x once the user tries to go back since our application thinks that the user tries to visit our application outside of Facebook.

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

Javascript :: Track Events Of Video Embedded Into A Facebook Wall?

Feb 20, 2012

My mission is to embed a video (custom player) into a facebook wall and track the users events (play count etc.), also gather other relevant data. I was wondering is this at all possible, if so, can you comment on that briefly?

View 1 Replies

Javascript :: Facebook Sdk Login Dialog Blocked When Invoked From Flash?

Feb 27, 2012

I have a SWF file that calls some javascript which shows the facebook login dialog via the javascript sdk.this all works fine, except for that fact that pop-up blockers block the login dialog, as it isnt invoked from a user action, but from flash.

View 1 Replies

Javascript :: Creating A Persistent Life Counter For A Facebook Game

Mar 20, 2012

i am currently working on a facebook game and i have a problem concerning the integration of a life counter which regenerates over time for a facebook game. The game is a simple Flash/AS3 shooter in which users are competing for the highest score. For monetary reasons every game costs one life and users should only be able to start a new game, if said life counter is >=1. To clear things up, i submitted a link to Popcap's facebook game "Zuma Blitz": ZUMA Blitz I can think of a few ways to do this, but i don't know which is the best/easiest approach. Would it be best to:

[Code]....

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

Javascript :: Facebook Game Development / University Project / Front End Woes

Dec 8, 2011

I have been requested to make a port of an iOS game for Facebook.The game itself is fairly simple, it is a puzzle game using a 2d array for a grid with XML passed from a server for loading objects onto the the grid, to create levels.The game will ask questions at stages which will be passed to my server and stored for research purposes.Some questions for those with experience.What front-end options do I have with Facebook? I have looked into both Flash and HTML5/js both of which i have little to no experience in (I'm experienced in Java/C#/Ruby + Rails).Javascript seems like a nightmare from what I have read, even looking into javascript game engines, but at least it is free. My backend will most likely be rails for handling server logic.Summary(because I ramble too much)

-Is javascript for programming games really a problem for simple games on Facebook?

-Are js game engines worth using? Does anyone have any experience with them?

-Would prevention of cheating be possible with a js/rails game, do server side checks work?

-Are there any alternatives for a front end for someone with C#/Java/Ruby background?I've never seen any Unity or Java apps on Facebook(I don't use it much) and I don't know if the licensing will be an issue for this research project.

View 1 Replies

Flash :: Javascript - Make A Console Plugin To Interact With Facebook Games Or Other Apps

Feb 5, 2011

I'm playing a flash game on facebook. I know I can decompile it to find out all the commands and would like to make scripts to automate the game by calling procedures in the actionscript of the game. So I guess I would like to make a plugin also that would insert this console into any flash app and this would be handy for a lot of things. Then if anyone wants to hack a new game, u just decompile it and make a handbook of methods for people to make scripts with. So how would I go about making this console? I don't know if I could make a swf interact with the game or if it has to be compiled into the game's swf. Or if it is easier with javascript, that is cool too. maybe we can make a javascript library just for this. anyone can tell me more?

View 2 Replies

ActionScript 3.0 :: 1061 Error (not Defined) When Call A Method Of A Self Defined Class

Feb 9, 2010

I am using flex builder 3.2, Action Script 3 and develop for Flash Player 10 and am quite new to it. when I call a method of a self defined class, I get the 1061 error (not defined). But the class and the method exist and are public, so what the hell am I doing wrong? Flash Builder is even offering me this method in the auto-completion, so at least the builder knows it... I have already tried cleaning the project (as this is the common source of strange errors when working with java/eclipse),

edit: solved... The problem was that a package had the same name as the variable I used for the class. Very strange error message, thumbs down for this .

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

Flex :: Can't Inherit From Classes Defined In A RSL

Jun 24, 2010

Note: This is an Actionscript project, not a Flex project.

I have class A defined in an RSL (technically, it's an art asset that I made in the Flash IDE and exported for actionscript. The entire .FLA was then exported as a SWC/SWF).

I my main project I have class B, which inherits from class A. The project compiles fine, with no errors.

However, when when the project runs and I try to create an instance of Class B, I get a verify error. Creating an instance of Class A works just fine, however:

import com.foo.graphics.A; // defined in art.swf / art.swc
import com.foo.graphics.B; // defined locally, inherits from A
...
<load art.SWF at runtime>

[Code]....

View 1 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 :: Button - Use The Disabled-skin Defined In The CSS

Apr 13, 2010

I have a CSS file containing the following definition :

[Code]....

Now, I want to use the disabled-skin defined in the CSS, as the upSkin of b1. So something like b1.setStyle("upSkin","Tab.disabled-skin"); But I am struggling with the exact syntax of the second argument for setStyle. What should I use for the second argument for setStyle method?

View 1 Replies







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