我有一个带有按钮的网页,用于邀请朋友到 facebook 上的粉丝页面,我显示邀请朋友弹出窗口,但如果我邀请朋友,他会收到我用于声明 de FB js objetc 的应用程序的邀请,可以邀请朋友脸书页面或其他网址?我的网页不在脸书上。Y把我的代码:
`//代码JS
window.fbAsyncInit = function () {
// init the FB JS SDK
FB.init({
appId: 'ID OF MY APP', // App ID from the App Dashboard
channelUrl: '', // Channel File for x-domain communication
status: true, // check the login status upon init?
cookie: true, // set sessions cookies to allow your server to access the session?
xfbml: true // parse XFBML tags on this page?
});
// Additional initialization code such as adding Event Listeners goes here
FB.Event.subscribe('edge.create', function (response) { alert('You liked the URL: ' + response); });
};
// Load the SDK's source Asynchronously
// Note that the debug version is being actively developed and might
// contain some type checks that are overly strict.
// Please report such bugs using the bugs tool.
(function (d, debug) {
var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
if (d.getElementById(id)) { return; }
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/es_LA/all" + (debug ? "/debug" : "") + ".js";
ref.parentNode.insertBefore(js, ref);
}(document, /*debug*/ false));
function ListaAmigos() {
FB.ui({
method: 'apprequests',
message: 'Hello'
}, respuesta);
//FB.getLoginStatus(onFacebookInitialLoginStatus);
}`
谢谢你的帮助,对不起我的英语不好!!