2013-03-06 3 views
0

페이스 북 팬 페이지에 초대 할 친구가있는 버튼이있는 웹 페이지가 있습니다. 초대 한 친구 팝업을 표시하지만 친구를 초대하면 내 앱에 초대장을 보내고 js objetc, 페이스 북 페이지 또는 다른 URL에 친구를 초대 할 수 있습니까? 내 웹 페이지가 페이 스북을 벗어났습니다. 팬 페이지에 친구 초대하기

내 나쁜 영어에 대한 어떤 도움 주셔서 감사하고 죄송

`// CODE 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); 
    }` 
! : Y 내 코드를 넣어

답변

0

약간의 트릭으로이 문제를 해결했지만 내 초대장이 내 페이스 북 앱으로 리디렉션되지만 일부 매개 변수로 페이지가이 매개 변수를 수신하면 팬 페이지로 리디렉션됩니다