Tuesday, June 4, 2024
 Popular · Latest · Hot · Upcoming
39
rated 0 times [  45] [ 6]  / answers: 1 / hits: 26833  / 13 Years ago, fri, july 29, 2011, 12:00:00

I am trying to show a 'Post to Your Wall' feed dialog with the following code in a facebook iframe app:



<div id=fb-root></div>
<script src=http://connect.facebook.net/en_US/all.js>
</script>
<script>
FB.init({
appId:'249725835046216', cookie:true,
status:true, xfbml:true
});

FB.ui({ method: 'feed',
message: 'Facebook for Websites is super-cool',
name: 'Facebook Dialogs',
link: 'http://developers.facebook.com/docs/reference/dialogs/',
picture: 'http://fbrell.com/f8.jpg',
caption: 'Reference Documentation',
description: 'Dialogs provide a simple, consistent interface for applications to interface with users.'



});
</script>


The problem is that it is appearing in a new popup window like this:



enter



Instead of appearing as like this without appearing in a popup window:



enter



I don't want the feed dialog to appear in a new popup windows because in most modern web browsers where popups are blocked. I don't know why this is happening. Please help.


More From » facebook

 Answers
55

I'm pretty sure that you get a popup if the user has not authorized your application. Facebook made it work that way for security reasons. If you prompt for authorization first, then you should get the inline dialog.



Note that the request for authorization will itself be a popup, but you only have to have that happen once. I have things working this way, the way you want, in the someecards Facebook app. Feel free to grab the javascript code, it's not specific to the app.


[#90915] Thursday, July 28, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
robertjaysona

Total Points: 276
Total Questions: 110
Total Answers: 116

Location: Finland
Member since Sat, Nov 6, 2021
3 Years ago
robertjaysona questions
;