Amer
Amer

Reputation: 1

Error when using FaceBook Registration form

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.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>

Upvotes: 0

Views: 1067

Answers (1)

bkaid
bkaid

Reputation: 52083

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

Upvotes: 1

Related Questions