Wednesday, June 5, 2024
 Popular · Latest · Hot · Upcoming
172
rated 0 times [  174] [ 2]  / answers: 1 / hits: 22870  / 13 Years ago, wed, june 15, 2011, 12:00:00

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?


More From » facebook

 Answers
24

Request 2.0 are tricky, all parts have to be exactly as facebook wants it, or it will not work.



see http://af-design.com/blog/2011/02/17/using-facebook-requests-to-promote-a-website/ for a good example on how to do it.


[#91688] Tuesday, June 14, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
yesseniadajab

Total Points: 258
Total Questions: 101
Total Answers: 127

Location: Mexico
Member since Mon, Sep 12, 2022
2 Years ago
yesseniadajab questions
Tue, Aug 3, 21, 00:00, 3 Years ago
Fri, Jan 15, 21, 00:00, 3 Years ago
Thu, Dec 10, 20, 00:00, 4 Years ago
;