Link to home
Start Free TrialLog in
Avatar of rdurban
rdurbanFlag for United States of America

asked on

What is the call to open a Facebook Share dialog from a flash application on a profile tab?

Good Evening!

I am trying to open a facebook sharing dialog from my flash application.  With my existing code, it opens the share dialog in a new window, I can't seem to get it to open in the parent window.  Here is the code that I am using:

function shareClickHandler(evt:MouseEvent):void
{
    var varsShare:URLVariables = new URLVariables();
    varsShare.u = 'http://domain.com/pageN.html';
    varsShare.t = 'Title Page';

    var urlFacebookShare:URLRequest = new URLRequest('http://www.facebook.com/sharer.php');
    urlFacebookShare.data = varsShare;
    urlFacebookShare.method = URLRequestMethod.GET;

    navigateToURL(urlFacebookShare);
}



Thanks!
Rose

 
Avatar of halfbloodprince
halfbloodprince

function showShareDialog() {
        var strWindowFeatures;
       /strWindowFeatures = "toolbar=no,menubar=no,dependent=yes,scrollbars=no,resizable=no,status=no,location=no,top=50px,left=80px,directories=no,width=650,height=300";

        window.open("http://www.facebook.com/sharer.php?u=yoururltoshare", "test", strWindowFeatures);
           }
Avatar of rdurban

ASKER

Good Morning HBP,

Thanks for the script, this is giving me a compile error.  Is this AS2 or AS3?  I need it to work in AS3.

Thanks!
Rose
ASKER CERTIFIED SOLUTION
Avatar of badrulnm
badrulnm

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This question has been classified as abandoned and is being closed as part of the Cleanup Program.  See my comment at the end of the question for more details.