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


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

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

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

ActionScript 3.0 :: Facebook Connect Popup Blocked By Some Navigators

Jun 6, 2011

I made a websites which needs the user to login to Facebook. It uses the facebook API to check if the user is logged or not; and the API opens a popup if he is not logged.

[Code]...

Facebook.login(FBfinishedLogin, {perms:"publish_stream,user_location"}); The problem is that with some of the browsers (eg. Safari); the popup is blocked. It is the API and not my code which launches the popup so I have no control on it.

View 2 Replies

Flash :: Facebook.login Window Doesn't Appear?

Sep 20, 2011

I have a really strange problem with calling window facebook login from Flash. On my private server facebook api works like a charm, but in my company, where we use very advanced application in flash and windows server the facebook login doesn't work..

I setup the HTML file correctly, I initialized Facebook.init(.. ..) and I call Facebook.login(.. ..) after clicking a button, but nothing happens, totally nothing, zero reaction.. Because Flash right now doesn't give me any errors...

I have checked the connections, and this is my [URL] and it is connecting very well and I can see in debugging proxy that there are connections in facebook. BUT, at my work in [URL] nothing happens, no responses, and connection in flash is the same like in my labs....

View 1 Replies

Flash :: Develop New Facebook Application (login,add Photos) Using Api Of It?

Mar 30, 2010

How to develop new facebook application (login , add photos ) using the api of flex

View 1 Replies

Actionscript 3 :: Facebook Login Within Flash Without Popup Or Redirect?

Jul 14, 2010

Does anybody know how to handle a Facebook login from within Flash using REST API/FB Connect, without the popup or redirect? It doesnt seem very possible as the login method seems to force the popup.

[Code]...

View 2 Replies

ActionScript 3.0 :: Flash Facebook Login - Cannot Find Class

Jan 30, 2012

I am trying to build my first flash facebook app, using the "flash facebook cookbook". Its instructions are all for flash builder and I am using flash pro. I've downloaded the flash facebook graph apk, and connected the swc, but when I try to login I need to return a FacebookSession object and I keep getting an error message that it can't find the class.

I import the:
import com.facebook.graph.Facebook;
But it's as if the swc connection didn't work.

View 2 Replies

ActionScript 3.0 :: Connect - Login - Post An Image To A Facebook Account Directly From Inside Of Flash?

Jul 15, 2010

Anyone know if you can connect, login, post an image to a Facebook account directly from inside of Flash? I grabbed the Facebook API for AS3 and have it installed, created an application definition on Facebook but am having no look connecting to it? I have seen some refereneces to it only working inside of Flex and am wondering it that's the case. I am looking to do a kiosk application where a camera image will be uploaded directly to the persons FB page.

View 17 Replies

ActionScript 3.0 :: Create A Pop Up Dialog Using Facebook Application

Jun 9, 2010

how to create a pop up dialog using facebook application, i found some examples but it doesn't worked for me, now i loaded my friends then beside the profile pic of my friends in have a button name select, where if i select that current friend it will now pop up the image and name then have a button continue how should i do that?

View 1 Replies

Javascript :: Embedded Swf And Use A Flash Alert Dialog To Confirm?

Feb 10, 2010

I have an AS2 Flash SWF that is calling another AS2 Flash File using loadMovieNum("flash.swf",2) and a JavaScript file that calls a function on page using a timer. This is what I get in Firefox with Flash 10 (IE8 gives no error message):

uncaught exception: Error calling method on NPObject! [plugin exception:

Error in Actionscript. Use a try/catch block to find error.].

What is going wrong? I can't see a problem. It is suppose to clear the contents of the embedded swf and use a Flash alert dialog to confirm Yes or No.

Flash:
import flash.external.ExternalInterface;
import mx.controls.Alert;[code]......

View 1 Replies

Javascript :: Opening A File Save Dialog Using Flash?

Jan 15, 2011

I know that there is no implementation of File Save Dialog in JavaScript as of now, but it can be done with Flash. I am looking for a lib or source code in Flash that could do it for me so that I can call it via JavaScript. JavaScript knows the data and filename, I just want to open a file save dialog.

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

Javascript :: Flash - Implement Blocking Modal Dialog In With DHTML?

Dec 21, 2010

I have a website with a flash image viewer. Once user clicks on flash button, I need to give a confirmation modal dialog before saving the file and if user clicks on OK only I have to pop file download dialog. Confirmation dialog with in flash is not an option for me. So I have to invoke JS function to pop a confirmation.Within the site, a custom DHTML confirmation modal dialog is used and it has two JS callback functions one for "OK" and the other for "Cancel" button click event handers. I have to use this modal dialog for this need.With Flash player 10 security features, it is unable to pop flash file download dialog via JavaScript

View 1 Replies

ActionScript 3.0 :: Use Facebook To Login To An Air-application?

Feb 21, 2011

I'm making an air-application in flash professional using actionscript. I was wondering if any of you know how (or if it's even possible) to use facebook to log in to my application. I found some stuff on the web, but I only found stuff to HTML, not actionscript.

View 1 Replies

Actionscript :: Flex4 And Facebook-api : Cannot Login

Jan 25, 2010

I wrote a simple application for facebook and it seems that i fail to login. I created a test application on facebook and i test my application by going to [URL] i have the following function that is being executed after ApplicationComplete event of my main application.

[Code]...

View 1 Replies

Flex :: Login To A Facebook Account From A App?

Sep 7, 2010

I would like to supply an username(mail address) and password to an API method and login to Facebook. Is it possible with the special swc library to access the API in this manner? If not, can you give me some hints on how to do it using ExternalInterface and JS?

View 2 Replies

Flex :: Using The Facebook API After Javescript Login

Sep 9, 2011

This is something I have been trying to figure out, but I am not sure exactly how to do it. I have a flex application that logs into facebook, but after that I can't access any of the facebook api. Right now I am using this HTML to log in:

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>

[Code]....

View 1 Replies

ActionScript 3.0 :: Facebook API - Login Without Blank Page?

Oct 13, 2009

when the user go to my app page and the swf is downloaded I'm using session = new FacebookSessionUtil( this.API_KEY, this.SECRET_KEY, this.scope.loaderInfo );session.login();... then the system open a new window showing the login form.My question is How can I prevent it? There are some way to log users from my swf?possible solution I can think of: login via PHP, and pass via FlashVars the session ID obteined by PHP, then start a session inside my SWF movie.

View 3 Replies

Android :: Using Flex For Facebook Mobile API Login Method?

Apr 7, 2011

I'm trying to implement the 1.6 Mobile Facebook API [URL]into an Air for Android application. I've succesfully used the Web and Desktop API's however with the mobile app it's expecting an extra parameter to a stageReference, see:

login(callback:Function, stageRef:Stage, extendedPermissions:Array, webView:StageWebView = null)

But, using i'm using Flex and not Flash CS5, i can't just pass in this.stage or this or anything like that.What exactly would you guys think I need to pass into that using Flash builder Flex? I can't seem to find any examples for the mobile actionscript API ?

Here's the login information from the Mobile API Docs:

login () method
public static function login(callback:Function, stageRef:Stage, extendedPermissions:Array, webView:StageWebView = null):void
Opens a new login window so the current user can log in to Facebook.

Parameters

callback:Function — The method to call when login is successful. The handler must have the signature of callback(success:Object, fail:Object); Success will be a FacebookSession if successful, or null if not.

stageRef:Stage — A reference to the stageextendedPermissions:Array — (Optional) Array of extended permissions to ask the user for once they are logged in.webView:StageWebView (default = null) — (Optional) The instance of StageWebView to use for the login window For the most current list of extended permissions[URL].

View 1 Replies

Facebook :: Displaying MY Public Wall Using AS3 Without User Login

Nov 7, 2011

All I want is to have the latest 3 or so posts from my clients Facebook page to populate and animate in a screensaver that I am building using Flash (AS3).

So far, every time I try to bring anything in, it requires a complete oAuth login and account link, but it's only a one way exchange (read-only, absolutely no writing, posting or even linking, since it's a screensaver) I'm not even sure the client wants pictures or anything.

I am currently trying to use the facebook-actionscript-api, but there isn't an option for the "App Login" type of Authentication that would solve most of my problems.

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

Flash 10 :: Javascript :: Open File Dialog In "without" User Interaction?

Sep 25, 2009

I want to open a file dialog via FileReference.browse() but I get #2176 error which means that this action can only be invoked upon some user interaction. I'm aware of security considerations but in my scenario I have a thin flash movie which merely displays an image and the whole UI is in javascript (I heavily use javascript <-> actionscript communication).

So the question is - do you think it would be possible to invoke FileReference.browse() upon the user interaction coming from javascript?

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

Javascript :: Lightbox-style Dialog Shows Below YouTube Movie On Mac OS 10.6?

May 13, 2010

I have a lightbox-style HTML dialog that shows a menu on top of a web page. It can be injected into any web page via a JavaScript bookmarklet.

One of my users is trying to use it on YouTube.com with the result that the flash movie is rendered on top of the dialog (a div with high z-index).I can't reproduce this. It works just fine for me. The dialog shows up on top of everything else on youtube.com, the video included.I had him save the page in Safari as Webarchive and send it to me. Even that shows the menu rendered correctly for me.

I use the exact same version of Safari (4.0.5/531.22.7) and Flash (10.1 r53, latest beta). Only difference I could find is that he uses Snow Leopard (10.6.6) and I "only" 10.5.8.

View 1 Replies

Flash Login Page For Multiple Separate Login Accounts

Aug 17, 2009

I have a need to build a flash login page. No big deal, but I need to have six seperate login accounts. For example:
Username: user1 Password: pass = link to [URL]
Username: user2 Password: pass = link to [URL]
Username: user3 Password: pass = link to [URL]
and so on for up to six users.

Again the usernames and passwords would not change, but need to redirect the particular user to a certain page.
stop();
var user_input = "";
var pass_input = "";
login_button.onRelease = function(){
if(user_input == "user1"
&& pass_input == "pass"){
getURL([URL], "GET");
}else{
gotoAndStop (3);
}}

View 7 Replies

Javascript :: Login Page 'if' Display Something In HTML

Jul 25, 2011

I am creating a login page in HTML with Javascript Elements.

Basically I have a login form. and if credentials are wrong I want it to show an alert in HTML which another Javascript manages. Anyway I have setup a test page here As you can see when you input the wrong credentials it will display an alert. But I want it to perform an action in HTML? (This is so hard to describe)

<div class="notification error"> That is the code in HTML which will show that red box you see up the top & I will add text later.

Here's the Login form:

else {
$('.notification-detials')
}
return true;

[Code].....

View 1 Replies







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