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


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

CS3 :: Stage Size For Facebook Apps?

Aug 14, 2009

Recommend for the stage size (in px of course) for a swf, if I were going to create a Facebook app (using the FBML's canvas)?

View 3 Replies

Professional :: Building Facebook Apps In Flash CS3?

Nov 3, 2010

Can Facebook apps be written in Flash CS3 or do I have to use Flex? I'm more comfortable with Flash, but it seems geared toward Flex.One of the Facebook SDK examples (FriendsList_flash) contains an FLA file but it won't load in Flash CS3. Does it require a new version or am I doing something wrong?

View 1 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 :: Connecting Flex With Database For Facebook Apps?

May 6, 2011

I have a task to make simple game that deployed as a facebook app using Adobe Flex. Like most facebook game, I need to show high score, compare score with friends and some other similar functionalities, which I think need some sort of database thing.

The problem is a had only little experience about database, only have tried simple things with MySQL and I don't know where to start.

View 1 Replies

Flash :: Facebook Chat Hides Apps When Open

Nov 20, 2011

While running a Flash app, if I open a new or existing Facebook chat window, my Flash content disappears. I can continue to hear music playing from the app and when I close/minimize the Facebook chat window, my Flash content reappears. Is this a known issue? This is happening in Google Chrome 15 and Internet Explorer 9 on Windows 7 with Flash Player 11.

I checked this on my own Flash app as well as on another Flash app made by someone else and the same behaviour is occurring. It does not however hide non-Flash content. It seems to be a bug with Facebook chat and Flash content.

View 2 Replies

ActionScript 3.0 :: Make Flash-based Facebook Apps?

May 26, 2010

Does anyone have any experience making Flash-based Facebook apps? I'm trying to make one but the event listeners don't seem to do anything. It works fine on its own but once I upload it to Facebook, it stops working.

View 4 Replies

ActionScript 3.0 :: Develop Flash Based Facebook Apps?

Feb 18, 2010

I have been trying to develop flash based facebook apps. After reading a bit on methods (there are many) I went with zerofractals bridge component ... basically an external interface wrapper that manages calls to the javascript api. Well, its been frustrating for me... some calls go off into limbo and generate no result event.. it hangs on various calls, never on the same one... im just over it. So now i need to decide what to try next.

I have had a hard time finding good flash/facebook documentation. I would love to see a good working example. As it stands, in addition to the above api frustration, my app chooses not to ask the user for permission the first time they come and doesn't load at all. They have to hit refresh. Lots of little **** like this is bugging me.

Does anyone here have experience with this? I need something that is reliable. I was hesitant to use the adobe library because you have to compile your api key and secret in it. Now im thinking about giving it another look, I can always bring those strings at runtime in from a protected place I guess.

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

Flash :: Iphone - Developing IOS Apps Using Adobe Cs5?

Mar 25, 2012

I remember that I've heard about a flash cs5 feature which lets the developers export their project to iphone (.ipa file) and pretty much make games for the iphone using actionscript 3, Is that really possible to do? I've also heard that now in order to develop games for the iphone I could use the adobe AIR I have no idea what or where to go to start, if it's really possible to do so with Flash CS5 then I'd get it

View 1 Replies

Adobe AIR Application Are Converted To IPhone Apps?

Mar 28, 2012

Anyone knows how the Adobe AIR application are converted to iPhone apps? I see two ways - either the Adobe AIR virtual machine mus be part of every application or they must convert all ActionScript calls to Cocoa Touch calls somehow or have an Objective-C twin for every ActionScript class and then compile it to ARM assembler.

View 2 Replies

IDE :: Adobe Update - Apps Do Not Work Anymore

Jan 14, 2009

I just finished up my update for my adobe products, and one of the updates was going from Flex3 to flex 3.2. I rebuild my app using flex 3.2 and it worked fine in my browsers. But, II used to load my flexapp in a flash movie and published this movie to an EXE. What used to work isn't working anymore. In my flex project I use the popupmanager to popup custom dialogsscreens: they work in my browser, but they don't popup up anymore when I load the flex app in my flashmovie...

View 1 Replies

Android :: Do Adobe Air Apps Receive System Events

Mar 3, 2011

I'm considering using Adobe Air to write an application for the android marketplace.I was wondering if anyone could tell me what (if any) the limitations are with regard to getting / handling system events.For instance can you pause the app if the user receives a text message?Or detect if they have their music playing and mute your app's sounds?It would seem a real pity if Air cannot do this.

View 1 Replies

ActionScript 3.0 :: AIR Do Adobe AIR Apps Make Registry Entries

Feb 15, 2011

And if they do does the uninstall remove them? Sorry I am such a noob!

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

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

ActionScript 2.0 :: Using FSCommand To Execute External Apps?

Apr 6, 2009

Basically I'm trying to use fscommand to open programs outside of the flashplayer. This I thought would be pretty simple but apparently not.Here is the actionscript I've already tried:

Code:
on (release) {
fscommand ("exec", "C:UsersMattDocumentsflashMTRXfscommandpin.bat");
}
on (release) {
fscommand ("exec", "fscommandpin.bat");
}
on (release) {
fscommand ("exec", "pin.bat");
}

But guess what, on release nothing seems to happen.The SWF file is in the folder "MTRX". I'm using Flash MX 2004. This is what the BAT file is:
Code:
@echo off
start PinballBot.exe
When I open it from windows explorer that works.

View 1 Replies

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

Flash :: Using External Class For Facebook Graph Api

Jan 21, 2011

I'm wondering. Is it possible to create an external class just to initialize the API then use functions to call the different items? Like a shortcut to using the API without all the nitty gritty stuff.

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

ActionScript 3.0 :: External SWF Button Not Working On Facebook FBML

Mar 23, 2011

I have a .swf and the external link buttons work fine except when on facebook the clickable buttons do not lead anywhere.

View 7 Replies

ActionScript 3.0 :: Facebook - External Interface Security Error

Apr 7, 2010

I am trying to make an external interface call on widgets I am creating to get the domain for in/out of network stats.

[Code]...

From what I am reading an allowscriptaccess needs to be set to always, which I can't do because there isn't embed code that is sent to Facebook during a share so I don't have control over that.

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







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