그냥 물어보고 싶습니다.이 탭의 프레임과 같은 작은 웹 사이트를 여는 Facebook 탭이 있습니다. 프레임의 특정 페이지 탭에 대한 링크를 추가하는 방법은 무엇입니까? " "예를 들어 탭 프레임에"집, 우리에 대해, 연락하기 "라는 말을 들려줍니다.이 탭으로 리다이렉트하는 공유 단추를 추가하면 연락처가 열렸습니다.페이 스북 탭 iframe 특정 페이지 열기
정적 프레임 앱을 사용하는 것으로 알고 있습니다.
는이 당신은 app_data
은 'signed_request'에있을 것 같은 http://www.facebook.com/[page_name]/?sk=app_[app_id]&app_data=[specific_page]
로 링크를 app_data
URL 매개 변수를 필요로하고 사용하는 것이 내 코드
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
// init the FB JS SDK
FB.init({
appId : '535262793177723', // App ID from the app dashboard
channelUrl : 'http://bridgestone.thesocialclinic-server.com/', // Channel file for x-domain comms
status : true, // Check Facebook Login status
xfbml : true // Look for social plugins on the page
});
FB.Canvas.scrollTo(0,0); };
// Load the SDK asynchronously
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
function mohammad(){FB.Canvas.scrollTo(0,0);}
</script>
<script type="text/javascript">
function getParameterByName(name) {
name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
results = regex.exec(location.search);
return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
}
</script>
<iframe src="http://bridgestone.thesocialclinic-server.com" scrolling="no" style="border:none;" width="100%" height="2000" onload="mohammad()"></iframe>
언제든지. upvote 또는 동의 항상 감사합니다;) – chrisboustead