rdurban
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:Mous eEvent):vo id
{
var varsShare:URLVariables = new URLVariables();
varsShare.u = 'http://domain.com/pageN.html';
varsShare.t = 'Title Page';
var urlFacebookShare:URLReques t = new URLRequest('http://www.facebook.com/sharer.php');
urlFacebookShare.data = varsShare;
urlFacebookShare.method = URLRequestMethod.GET;
navigateToURL(urlFacebookS hare);
}
Thanks!
Rose
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:Mous
{
var varsShare:URLVariables = new URLVariables();
varsShare.u = 'http://domain.com/pageN.html';
varsShare.t = 'Title Page';
var urlFacebookShare:URLReques
urlFacebookShare.data = varsShare;
urlFacebookShare.method = URLRequestMethod.GET;
navigateToURL(urlFacebookS
}
Thanks!
Rose
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
var strWindowFeatures;
/strWindowFeatures = "toolbar=no,menubar=no,dep
window.open("http://www.facebook.com/sharer.php?u=yoururltoshare", "test", strWindowFeatures);
}