I am trying to build-in 'invite a friend' in my app. I am using FB.ui. It seems to work (I am using standard code from http://developers.facebook.com/blog/post/464/.
But the iframe where you should be able to send a request to your friends just says: An error occurred. Please try again later.
I didn't forget to use access token.
echo '<div id=fb-root></div>';
echo '<script src=http://connect.facebook.net/en_US/all.js>';
echo ' </script>';
echo ' <script>';
echo FB.init({appId:'215089721847404', cookie:true, status:true, xfbml:true});;
echo FB.ui({ method: 'apprequests', message: 'Here is a new Requests dialog...', display: 'iframe', access_token: '$token'});;
echo ' </script>';
Did fb stop allowing request dialogs from within apps? Or am I doing something wrong? Does someone have another solution? Please help.
Update: Maybe that is because I didn't put redirect_uri. Now I did and it doesn't give the error, but now the iframe just doesn't stop loading...
Does anyone have an idea?