0 レビュー
1 回答
php-登録時にFacebookのスコープを指定する方法
以下の完全なコードを使用して、ユーザーを自分のサイトに登録しています。登録時に必要な権限はどこで指定しますか?私はそれをfields変数の前に置いてみましたが、何もしませんでした。ありがとう。
<?php
define('APP_ID',"848483");
define("REDIRECT_URL","some url");
ECHO'
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta content="noarchive" NAME="robots">
<meta name="robots" content="noindex,nofollow">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<iframe src="https://www.facebook.com/plugins/registration.php?
client_id='.APP_ID.'&
redirect_uri='.REDIRECT_URL.'&
fields=
'."
[{'name':'name'},{'name':'email'},{'name':'username','description':'my site username','type':'text'},{'name':'password'}]".'"
scrolling="auto"
frameborder="no"
style="border:none"
allowTransparency="true"
width="100%"
height="330">
</iframe>
</body>
</html>
';
?>
わからない
同様の質問
私たちのウェブサイトで同様の質問で答えを見つけてください。