3
나는 functionbook을 공유하는 facebook을 가진 html5 반응 형 웹 페이지를 만들고 있습니다.FB.ui (웹 및 휴대 전화 모두)
가 이미 FB.ui이 자바 스크립트 코드를 만들어 :
<script>
window.fbAsyncInit = function() {
FB.init({appId: 'appid', status: true, cookie: true,
xfbml: true});
};
(function() {
var e = document.createElement('script');
e.async = true;
e.src = document.location.protocol +
'//connect.facebook.net/en_US/all.js';
document.getElementById('fb-root').appendChild(e);
}());
</script>
<script type="text/javascript">
$(document).ready(function() {
$('#fb-share-button').click(function (e) {
e.preventDefault();
FB.ui(
{
method: 'feed',
name: 'title',
link: ' http://linkToShare.com',
picture: 'http://helloImage.png',
caption: 'Caption Best',
description: 'Desc',
message: '',
display: 'touch'
});
});
});
</script>
내가 속성 "디스플레이"는 휴대 전화 브라우저의 경우는 값 '터치'를 얻을 속성을 얻을 것을 원하는 '대화'값 데스크톱 브라우저 인 경우
나는 항상 '대화 상자'를 넣으려고했지만 안드로이드에서는 Firefox에 이상한 문제가 있습니다.
감사합니다.
검사 결과 100 % 작업
display: 'iframe'
바탕 주변 테스트 및 모바일 장치 브라우저 후