[英]How can I adjust the display of a facebook login from my server facebook api when it is not using the OAuth Dialog directly?
根據我在Facebook登錄按鈕Vs中閱讀的內容。 OAuth對話框我想使用的選擇是facebook登錄按鈕,因為我寧願擁有一個包含facebook的網站,而不是一個圍繞facebook構建的網站。
更重要的是,在創建其移動網絡應用程序版本時, 更改 Web應用程序顯示的文檔說,我可以直接在OAuth鏈接的末尾添加&display=wap
。 由於我使用的是Facebook登錄按鈕,應如何編輯才能將顯示更改為wap或touch?
該按鈕的代碼,以防萬一有人想要它:
<html>
<head>
<title>My Facebook Login Page</title>
</head>
<body>
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
FB.init({
appId : '<?php echo $facebook->getAppId(); ?>',
session : <?php echo json_encode($session); ?>, // don't refetch the session when PHP already has it
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
</script>
<fb:login-button>Login with Facebook</fb:login-button>
</body>
</html>
根本就沒有。 在同一文檔中,您鏈接到:
<html>
<head>
<title>My Facebook Login Page</title>
</head>
<body>
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
FB.init({
appId:'YOUR_APP_ID', cookie:true,
status:true, xfbml:true
});
</script>
<fb:login-button>Login with Facebook</fb:login-button>
</body>
</html>
按照預期方式打開對話框(檢查文檔中的屏幕截圖)。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.