Вот обходной путь: вы можете перейти к URL-адресу общего доступа из Flash, загрузить соответствующие параметры и открыть его в новом окне. Для этого должна работать следующая функция:
import flash.net.*;
/**
* Function that allows sharing a page in Facebook
* @param sharedTitle String with the title of the page that you want to share in Facebook
* @param sharedURL String with the full URL that you want to share in Facebook
* @param sharedSummary (Optional) String with a description about your shared content
* @param sharedImageURL (Optional) String with the full URL where the image to display next to your shared post is located
*/
function shareInFacebook(sharedTitle : String, sharedURL : String, sharedSummary : String = null, sharedImageURL : String = null) : void {
var fullURLString = "";
fullURLString += "http://www.facebook.com/sharer.php?s=100";
fullURLString += "&p[title]=" + encodeURIComponent(sharedTitle);
fullURLString += "&p[url]=" + encodeURIComponent(sharedURL);
if (sharedImageURL != null) {
fullURLString += "&p[images][0]=" + encodeURIComponent(sharedImageURL);
}
if (sharedSummary != null) {
fullURLString += "&p[summary]=" + encodeURIComponent(sharedSummary);
}
var theRequest : URLRequest = new URLRequest(fullURLString);
navigateToURL(theRequest, "_blank");
}
Вызывайте эту функцию при нажатии кнопки, и вы должны получить пользовательскую кнопку Facebook внутри Flash.
Дополнительная информация о том, как создать URL-адрес для отправки в Facebook со всеми параметрами (который можно вызвать с помощью Flash:)
Facebook Share не показывает мое описание или мой эскиз
И многое другое, включая метатеги, которые вы можете вставить в HTML-код:
Как настроить sharer.php в Facebook