Flex :: Facebook API Init() Not Work?

Dec 9, 2010

I am calling [url]...........to log in to facebook using the actionscript api (as explained in this tutorial: http:[url]...... But, it does not seem to do anything.Looking at the API source, the only call that is made to JS is

ExternalInterface.call('FBAS.init', JSON.encode(options));

The two javascript libraries which are required are: http:[url].....

However, i cannot find any reference to FBAS in these libraries. Am I even using the correct libraries? Is there another reason I have missed as to why FBAS doesnt exist? or even why calling Facebook.init() does nothing?

View 6 Replies


Similar Posts:


Flex :: Is There Init() Method Like Servlet Init() Only One Time Execute

Jul 25, 2011

Flex having any init(), destroy() method. Like Servlet init()method will run at Application initialize and never call it again if Refresh the Page also.

View 2 Replies

Php :: Facebook.init Method Not Executing

Feb 13, 2012

I'm a total noob using the Facebook Graph API for AS3. I have a Flash game and the idea is to upload it to Facebook, and everything seems to be ok (When entering the Facebook app, the swf shows perfectly and I'm able to post the facebook user id, the user name and the score to a database in the server where the game is located. I intend the game to automatically post to the user feed what he/she had score, but after making a lot of tests I found out that the method is simply not running.[code]

View 1 Replies

ActionScript 2.0 :: Init Call Wont Work On MovieClip Subclass

Jan 19, 2009

Can anybody tell me why my lb.init(x, y, h, w); call doesnt call! I get no errors yet my output panel only shows.[code]could it be an issue with the cast on lb?this class is for button which i am creating via the createLightButton()Method in another class the button is created init() in not called +NO ERRORS.Ive used an example for Moocks Essential ActionScript ch13 Avatar class to create this class and I can see no reason for it not to work.[code]

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

Actionscript 3 :: Flex - Error #1009 At Global$init()

Mar 26, 2012

So I have searched, found some similar errors but unfortunately no resolution to the problem. I am writing an iPad game, and for optimisation I have created an assets reference class called R, following the example of a tutorial from gotoAndLearn. My error fires when I try to access the first static BitmapData from R, and oddly points to the class declaration line:

[Code]...

If I try commenting the access to R._l1Background (thus making the latter function do nothing) I still get similar errors when other functions try accessing R's properties. I might (most likely) have other errors in my code, but for the moment this is keeping me from debugging the rest of the game. I will ask my teachers about this and forward any lead or solution they come up with, as well as the results of my own researches.

[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

Facebook :: Flash App Buttons Don't Work

Aug 29, 2011

I have this app in Facebook:URL...The thing is, in Mac and some Windows nav (like Chrome or Firefox), the buttons in this app don't work. In this URL, you can see the correct functionality of this buttons:URL...

View 1 Replies

Facebook :: Cannot Get Extended Permissions To Work

Nov 4, 2011

I'm working with the Facebook Actionscript API (no PHP or Javascript), and I'm having trouble granting access to extended permissions, like publish_actions. I'm using the following login:
var opts:Object = {perms:'read_stream,publish_actions,offline_access,user_photos'};
Facebook.login(handleLogin, opts);

I get two "Request for Permission" windows. The first says my app needs access to "Your Photos". The second says my app would like permission to "Access posts in your News Feed" and "Access your data anytime". Why can't I request access to "publish_actions"? It looks like there may be two permissions levels - regular and "extended". It looks like extended permissions may require a "scope" parameter, instead of "perms". How/where to use the "scope" parameter.

View 1 Replies

AS3 :: Flash - Facebook.ui Callback Doesn't Work

Aug 31, 2011

Today I'm going to use this method:

vardataObject:Object = {...}
Facebook.ui("stream.publish", dataObject, cb, "iframe");
function cb(res:Object):void
{
...do something...
}

I always use this method and it always work. But today the callback doesn't work!I'm using the API 1_6, but I've tryed with API 1_7 too.

View 1 Replies

Actionscript 3 :: Creating A Custom, Dynamic Flash Button That Will Work In Facebook Shares

Jan 17, 2011

I've had an issue with using Facebook's Share feature.

The user experience on the shared content below is just completely unclear (even when I tested some clarified language: e.g. "click here"). Users simply don't know what to do: they often either click "Like," or they comment with something along the lines of "I support you."

According to the documentation, it is possible to share Flash content in these posts. I'm hoping I can create a "Support" button as an SWF button.

Is it possible to dynamically create such an SWF with a custom *href? Will my use case work on Facebook?

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

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

Flash :: Why Do Some Classes Have An Init() Method

May 19, 2011

Is init() function run once you instantiate it? For example:

[Code]...

Another question is: What's the difference between MovieClip, Shape and Sprite classes and when is it appropriate to use each?

View 2 Replies

ActionScript 3.0 :: Using A Button's Function On INIT?

Feb 11, 2011

I am creating a small file, using procedural programming, not ready for OOP.I have button that adds a MC to the stage from the library. Is there a way to re-use the same function on page load?

Code:
function addCard(evt:Event):void
{

[code].....

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

Flash :: Facebook :: Facebook Pages And Content - Autoplay?

Dec 6, 2011

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?

View 2 Replies

CS4 Crashes On Start At The Fonts Init Stage?

Jun 15, 2009

I am guessing it must be a font that Flash doesn't likes, but I don't know how to find it. I have FontAgent Pro installed, and it shows no corrupt fonts.
 
I have 2K+ fonts installed, and %90+ of them are Adobe FontFolio fonts. Others are standard Windows fonts, and a few commercial ones purchased from MyFonts.com
 
Anyone have any solution for this? Less ridiculous than uninstalling all the fonts and re-installing them in small packs, like 10 by 10, to find which ones are no-good.
 
Photoshop, Illustrator, Fireworks runs smoothly without any error, so I think this MUST be a bug in flash CS4.
 
Edit: The version is CS4 10.0.2

View 6 Replies

Flash :: What If (stage) Init(); Means In Actionscript

Jun 6, 2010

I'm creating my first as3 with flashdevelop I don't understand what the instructions mean:

package
{
import flash.display.Sprite;
import flash.events.Event;

[Code].....

What if (stage) init(); means ? What is Event.ADDED_TO_STAGE ? Why remove listener in init ?

View 1 Replies

ActionScript 3.0 :: Public Variables From Init Space?

Nov 10, 2010

I have a bunch of variables I need to pass to some class from frame where I instance classes. Is there any other way do make Class read that variable values beside this?

Sample:

ActionScript Code:
var _imgPaddingVert:Number  = 2;
var _imgPaddingHor:Number   = 3;
var _minTopMargin:Number    = 30;

[Code].....

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

Flex - Log Out From Facebook?

Oct 14, 2011

Well i developing a Flex desktop app and i cant logout form facebook. I mean after loggin in and updating the photo i want to update, i run the method to log out, which looks like this

FacebookDesktop.logout(handleLogout);

Where handleLogout is a function where i can do other things.The method runs but never log out. I think that maybe loading an other request i could log out, and i find that using:

[URL]

would log out, but i dont know where i ca get the accesToken.

View 1 Replies

Post To Facebook Via Flex?

Jan 26, 2010

Is there a way to post to a users Facebook wall via fbConnect? (php/as3) I can authenticate and pull info but not post anything. I have searched extensively and not found a working example or docs on how to post directly via AS3. My current work around is to external link to an Ajax page.

View 1 Replies

Facebook App: Using Flex Or JQuery?

May 1, 2010

I am about to start a new project, a facebook app. There are two alternatives for client-side in my mind.Write Flex-Facebook app. Or write html with Ajax and Jquery.

So what are your opinion, which do you recommend?What are the issues about each to take into account?Advantages, disadvantages, subjective opinion?

View 3 Replies

Flex :: Facebook Login Using 4?

Jul 7, 2011

I am trying to integrate my application with facebook.[URL]I get no errors or warnings. But when I run my app,on click upon login the login window does not pop up at all..as in nothing happens...No errors of any sort..

View 1 Replies

C# - Get Around Subclass Init Methods Needing Different Numbers Of Arguments To Their Super Classes?

Aug 10, 2010

Imagine I have a game with a base Entity class, with an init method that takes no arguments. Now I have a Wizard class, but I want to pass in 2 parameters, say speed and strength. In AS3 (and I believe Java and C#) I will not be allowed to do this - it is an "incompatible override" because the method signatures won't match. Now I could just make an "initWizard" method instead, but then I have the problem of the init method of each class potentially having different names. I need solutions that work in AS3, Java or C#.

View 2 Replies

Flex :: Facebook Status Can Be Updated Through Air

Jan 25, 2010

Want to find out if facebook status can be updated through flex or air.

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 :: Add Facebook Like Button To A Flex App?

Jun 18, 2010

I am working on a Flex AS3 application and wanted to add the Facebook Like button inside the app. I am unable to find any API or anything apart from the [URL] code generator.

View 4 Replies







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