페이스 북은 정말 멋지게 시작했습니다. 사용자가 클릭하여 옵트 인하도록 페이지를 리디렉션하는 방법을 알아 내려고 노력했습니다. 자, 나는 진지하게 자바에 대한 좋은 점이 없다. PHP는 내 일이다.Facebook Send-To-Messenger 이벤트 리스너
참조 : https://developers.facebook.com/docs/messenger-platform/plugin-reference/send-to-messenger#event
작업 코드 : CONSOLE.LOG을 쫓아 및 리디렉션하지만 사용자가 버튼을 클릭하고를 트리거 할 때 제가하고 싶은 것은 뭔가를 할 것입니다 것입니다
FB.Event.subscribe('send_to_messenger', function(e) {
// callback for events triggered by the plugin
console.log('inside the send_to_messenger');
window.top.location = 'http://google.com';
});
send_to_messener 버튼으로 옵트 인하십시오.
그래서 나는 다시 ---도 ---
FB.Event.subscribe('send_to_messenger', function(e) {
FB.Event.subscribe('clicked', function(e) {
// callback for events triggered by the plugin
console.log('user clicked button');
window.top.location = 'http://google.com';
}});
을
FB.Event.subscribe('clicked', function(e) {
// callback for events triggered by the plugin
console.log('user clicked button');
window.top.location = 'http://google.com';
});
을 시도, 아무 일 없다 - 사람이 올바른 방향으로 가리킬 수있는 단서가있는 경우, 나는 그것을 감사하겠습니다 .. 감사!!
'사용자가 이미 로그인되어 "메신저로 보내기"를 클릭하면 is_after_optin'가 true로 설정되어 있지 않습니다. – Flimm