0

I am in the process of converting my FBML application to iframe as per Facebook's new requirements:

No new FBML applications We will stop allowing new FBML applications, but will continue to support existing FBML tabs and applications. Instead, we recommend using IFrames.
--Facebook Roadmap http://developers.facebook.com/roadmap

Now my application allows you to post your creation to another users wall (or a fan/group page). My old application used the FBML fb:friend-selector to allow the user to pick a friend, and it would grab the id of them, and post on their wall using FBJS Facebook.streamPublish.

My question is, how do i go about doing the same thing in an iFrame? As far as i am aware, the only option i have is:

  • Use FBML in the iframe and have the js SDK turn it into an ugly, hard to access iframe (which also defies the point of sticking it all in a iframe in the 1st place, as it is going to be removed at somepoint?)
  • Create my own friend selector using graph api or something. Have yet to see a working example of that in action, makes me wonder if it is possible.

Are there any other options out there, or does anyone have a working custom friend selector in an iFrame?

Thanks in advance :)

Andy
  • 443
  • 1
  • 6
  • 21

1 Answers1

1

You can accomplish this with XFBML in the iFrame (the same way you would handle this on an off-canvas FB Connect application). Here's a post with more details.

Community
  • 1
  • 1
Kyle Wild
  • 8,845
  • 2
  • 36
  • 36
  • But with FBML heading for the trash, is this really the best method of approach? and beside which the tag, is basically just creating an iframe in your iframe, isn't it then hard to obtain the id of the selected user? – Andy Jan 17 '11 at 09:00
  • FBML isn't heading for the trash. FBML Canvas Applications are. They intend to continue to support iFrames applications. – Kyle Wild Jan 17 '11 at 09:02
  • The policy change you're concerned about only applies to the right-hand radio button in the app settings: http://drktd.com/43mx – Kyle Wild Jan 17 '11 at 09:04
  • Thank you for your input, i will try pull it together using the XFBML method – Andy Jan 17 '11 at 10:50