0

Facebookのファンページに友人を招待するためのボタンを備えたWebページがあり、友人を招待するポップアップを表示しますが、友人を招待すると、FB js objetcを宣言するために使用するアプリへの招待を受け取り、友人を招待することができますFacebookページまたは他のURL?私のウェブページはフェイスブックから離れています。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);
    }`

助けてくれてありがとう、私の悪い英語でごめんなさい!!

4

1 に答える 1

0

私はちょっとしたトリックでこれを解決しました。この招待状は Facebook アプリにリダイレクトされますが、いくつかのパラメーターがあり、ページがこのパラメーターを受け取ると、ファンページにリダイレクトされます。

于 2013-03-06T17:40:10.480 に答える