Solved

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

Posted on 2010-08-30
5
958 Views
Last Modified: 2012-05-10
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

 
0
Comment
Question by:rdurban
5 Comments
 
LVL 7

Expert Comment

by:halfbloodprince
ID: 33566397
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);
           }
0
 

Author Comment

by:rdurban
ID: 33568138
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
0
 
LVL 5

Accepted Solution

by:
badrulnm earned 500 total points
ID: 33998712
navigateToURL(urlFacebookShare, "_self");
0
 
LVL 37

Expert Comment

by:CyanBlue
ID: 34272927
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.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I have a Synology DS212+ NAS.  These are not only great for backup and normal NAS stuff, but also for delivering media throughout your home or LAN via DLNA.  I copied my whole audio collection from iTunes over to the box, but couldn't figure out how…
Keep your audience engaged and get the most out of your next presentation with these quick Prezi tips.
Viewers will learn how to create burn videos onto a DVD using Nero Suite including creating a DVD menu and chapters.
Viewers will learn how to create and use Simpler instruments in Ableton Live. Load new Simpler into an empty MIDI track: Select a sample and drop it into sample window in Simpler: If sample is not pitched at C3, adjust tuning with Transpose para…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now