开发者

Error when using FaceBook Registration form

开发者 https://www.devze.com 2023-04-06 02:35 出处:网络
I tries to use facebook registration plugin but I got this error \'redirect_uri\' should be an absolute url.

I tries to use facebook registration plugin but I got this error

'redirect_uri' should be an absolute url.

and here is the code :

<html>
    <head>
      <title>My Facebook Registration Page</title>
    </head>
    <body>
      <div id="fb-root"></div>
      <script src="http://connect.facebook.net/en_US/all开发者_StackOverflow社区.js">
      </script>
      <script>
         FB.init({ 
            appId:'125309184237777', cookie:true, 
            status:true, xfbml:true 
         });
      </script>
         <fb:registration
            fields="[{'name':'name'}, {'name':'email'},
            {'name':'favorite_car','description':'What is your favorite car?',
            'type':'text'}]" redirect-uri="index.php">
    </fb:registration>
    </body>
 </html>


Put in an absolute URL in for the redirect-uri. For example, http://example.com/index.php

0

精彩评论

暂无评论...
验证码 换一张
取 消