0
Javascript SDK를 통해 Payments API를 사용하고 있습니다. 사용자가 지불을 완료 한 후 FB 내의 감사 페이지로 리디렉션하고 싶습니다. redirect_uri는 FB App 설정에 정의 된 사이트로 제한됩니다. 그러면 어떻게해야합니까? 아니면 FB는 자신의 팝업 대화 상자가 최종 감사 페이지로 간주하고 그게 전부입니까?감사 페이지로 리디렉션 할 수 있습니까?
function buy() {
var credits= 2;
FB.ui({
method: 'pay',
credits_purchase: false,
order_info: credits,
// FB says it will only redirect to the URL registered for the app.
// I'll try to fudge by adding a parameter:
redirect_uri:'https://apps.facebook.com/MYAPP/index.php?thankyou=1',
dev_purchase_params: {
oscif: true
}
},
function(response) {
div = document.getElementById('fb-response');
div.innerHTML = JSON.stringify(response);
});
}