Отображение подключения Facebook приглашает друзей диалоговое окно и закрывающийся на завершении

Лучшим, который я нашел, является gedit, к сожалению. Проведите несколько часов с ним, и Вы обнаружите, что это не настолько плохо с плагинами и темами. Можно использовать командную строку для открытия документов в нем.

10
задан Dougnukem 23 November 2009 в 09:20
поделиться

2 ответа

Если у вас есть где-то этот файл xd_receiver.html, убедитесь, что вы правильно указали путь к файлу xd_receiver.html, используя полный URL-адрес вашего сайта, например:

http://www.yoursite.com/xd_receiver.html

1
ответ дан 4 December 2019 в 00:25
поделиться

Can you explain more about your app. Is it Flash? What type of technologies are you using for the server side. If you have PHP you could use a Jquery lightbox or smoothbox to popup the invite page. I used the FBML code for invitation for my app even thought the rest of my app was with Facebook API and not FBML. Here's and example of if you have PHP, if you don't you can still use this if you have problems doing so let me know:

http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">





http://developers.facebook.com $api_key = '[api_key]'; $secret = '[secret]';
$app_name = "[Your App name]";
$app_url = "[your canvas page]";
$invite_href = "[put_destination]"; // Rename this as needed require_once '../neo_nosrati/facebook-platform/facebook.php';
/*change accordingly probably something like:../facebook/facebook-platform/php/facebook.php' . THE API Library you downloaded from facebook! */

$facebook = new Facebook($api_key, $secret); $facebook->require_frame();
$user = $facebook->require_login(); if(isset($_POST["ids"])) { echo "

Thank you for inviting ".sizeof($_POST["ids"])." of your friends on http://apps.facebook.com/".$app_url."/\">".$app_name.".

\n"; echo "

http://apps.facebook.com/".$app_url."/\">Click here to return to ".$app_name.".

"; }

else { // Retrieve array of friends who've already authorized the app. $fql = 'SELECT uid FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1='.$user.') AND is_app_user = 1'; $_friends = $facebook->api_client->fql_query($fql); // Extract the user ID's returned in the FQL request into a new array. $friends = array(); if (is_array($_friends) && count($_friends)) { foreach ($_friends as $friend) { $friends[] = $friend['uid']; } }

// Convert the array of friends into a comma-delimeted string. $friends = implode(',', $friends); // Prepare the invitation text that all invited users will receive.
$content = " has started using http://apps.facebook.com/".$app_url."/\">".$app_name.". YOUR MESSAGE. You should definitely try it out!\n". "get_add_url()."\" label=\"Somthing like. Add app!\"/>"; ?>



0
ответ дан 4 December 2019 в 00:25
поделиться
Другие вопросы по тегам:

Похожие вопросы: