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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
In this article, I'll explain how to setup a Plex Media Server (https://plex.tv/) on a Redhat (Centos) 7 based NAS with screenshots to help those looking for assistance.  What is Plex? If you aren't familiar with Plex, it’s a DLNA media serv…
Viewers will learn how to turn a Live Set into a compressed Live Pack file, and how to install Live Packs. Make: File > Collect All And Save: File > Manage Files: Click Manage Project: Click Create Pack: Select save location: Install: Doub…
Viewers will learn how to use LFOs to modulate the sound of their Sampler instruments. Click the Modulation tab in Sampler: Choose one (or more) of the three available LFOs, and click the respective button to turn it on: Select a waveform, an LF…

820 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