Hi all! I just updated to the most recent version of Facebooker from Github and have been playing around with getting our FB app working with the new Facebook design at www.new.facebook.com (using the "api: new" option in the facebooker.yml file). As far as I can tell, everything seems to be working as expected so far except I can''t seem to get our apps profile box to appear (either on the main profile page or the boxes tab). I''m currently using the Facebooker Publisher to send our updates. What I had been using prior to updating to the newest Facebooker and works fine with the old FB site is this: def profile_update(facebook_user, user, install_url) send_as :profile from facebook_user recipients facebook_user fbml = render(:partial=>"/facebook/profile_fbml",:locals => { :user => user, :fb_user => facebook_user, :install_url => install_url }) profile(fbml) end My understanding is the new FB site requires that you use profile_main to get your app box posted as before, so I changed the above to: def profile_update(facebook_user, user, install_url) send_as :profile from facebook_user recipients facebook_user fbml = render(:partial=>"/facebook/profile_fbml",:locals => { :user => user, :fb_user => facebook_user, :install_url => install_url }) profile(fbml) profile_main(fbml) end I''ve confirmed that the :profile and :profile_main fbml data is being sent to FB in the request and I get the following response back: <?xml version="1.0" encoding="UTF-8"?> <profile_setFBML_response xmlns="http://api.facebook.com/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://api.facebook.com/1.0/ http://api.facebook.com/1.0/facebook.xsd ">1 </profile_setFBML_response> However, no profile box is being added to the page. I assume I''m just doing something wrong here. Any ideas? -Joel
Answered my own question. Specifying profile_main only makes it so it''s *possible* to have your apps profile box added. The user must manually add this from the profile tab of your apps settings window. At least, that''s my current understanding based on what I read here http://wiki.developers.facebook.com/index.php/New_Design_Narrow_Boxes . Does anyone know if there''s a way to prompt the user to add the profile box on install? -Joel On Jul 28, 2008, at 2:55 PM, Joel Watson wrote:> Hi all! > > I just updated to the most recent version of Facebooker from Github > and have been playing around with getting our FB app working with > the new Facebook design at www.new.facebook.com (using the "api: > new" option in the facebooker.yml file). As far as I can tell, > everything seems to be working as expected so far except I can''t > seem to get our apps profile box to appear (either on the main > profile page or the boxes tab). > > I''m currently using the Facebooker Publisher to send our updates. > What I had been using prior to updating to the newest Facebooker and > works fine with the old FB site is this: > > def profile_update(facebook_user, user, install_url) > send_as :profile > from facebook_user > recipients facebook_user > fbml = render(:partial=>"/facebook/profile_fbml",:locals => > { :user => user, :fb_user => facebook_user, :install_url => > install_url }) > profile(fbml) > end > > My understanding is the new FB site requires that you use > profile_main to get your app box posted as before, so I changed the > above to: > > def profile_update(facebook_user, user, install_url) > send_as :profile > from facebook_user > recipients facebook_user > fbml = render(:partial=>"/facebook/profile_fbml",:locals => > { :user => user, :fb_user => facebook_user, :install_url => > install_url }) > profile(fbml) > profile_main(fbml) > end > > I''ve confirmed that the :profile and :profile_main fbml data is > being sent to FB in the request and I get the following response back: > > <?xml version="1.0" encoding="UTF-8"?> > <profile_setFBML_response xmlns="http://api.facebook.com/1.0/" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://api.facebook.com/1.0/ http://api.facebook.com/1.0/facebook.xsd > ">1 > </profile_setFBML_response> > > However, no profile box is being added to the page. I assume I''m > just doing something wrong here. Any ideas? > > -Joel >
I think you would have to detect that you have a new user and give them the page with the add to profile button. I haven''t seen any other way to do it. Which reminds me, I think i''ll need to do that for my apps. :) Dave On Mon, Jul 28, 2008 at 4:27 PM, Joel Watson <joel at i5labs.com> wrote:> Answered my own question. Specifying profile_main only makes it so it''s > *possible* to have your apps profile box added. The user must manually add > this from the profile tab of your apps settings window. At least, that''s my > current understanding based on what I read here > http://wiki.developers.facebook.com/index.php/New_Design_Narrow_Boxes. > Does anyone know if there''s a way to prompt the user to add the profile box > on install? > > -Joel > > > On Jul 28, 2008, at 2:55 PM, Joel Watson wrote: > > Hi all! >> >> I just updated to the most recent version of Facebooker from Github and >> have been playing around with getting our FB app working with the new >> Facebook design at www.new.facebook.com (using the "api: new" option in >> the facebooker.yml file). As far as I can tell, everything seems to be >> working as expected so far except I can''t seem to get our apps profile box >> to appear (either on the main profile page or the boxes tab). >> >> I''m currently using the Facebooker Publisher to send our updates. What I >> had been using prior to updating to the newest Facebooker and works fine >> with the old FB site is this: >> >> def profile_update(facebook_user, user, install_url) >> send_as :profile >> from facebook_user >> recipients facebook_user >> fbml = render(:partial=>"/facebook/profile_fbml",:locals => { :user => >> user, :fb_user => facebook_user, :install_url => install_url }) >> profile(fbml) >> end >> >> My understanding is the new FB site requires that you use profile_main to >> get your app box posted as before, so I changed the above to: >> >> def profile_update(facebook_user, user, install_url) >> send_as :profile >> from facebook_user >> recipients facebook_user >> fbml = render(:partial=>"/facebook/profile_fbml",:locals => { :user => >> user, :fb_user => facebook_user, :install_url => install_url }) >> profile(fbml) >> profile_main(fbml) >> end >> >> I''ve confirmed that the :profile and :profile_main fbml data is being sent >> to FB in the request and I get the following response back: >> >> <?xml version="1.0" encoding="UTF-8"?> >> <profile_setFBML_response xmlns="http://api.facebook.com/1.0/" >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xsi:schemaLocation="http://api.facebook.com/1.0/ >> http://api.facebook.com/1.0/facebook.xsd">1 >> </profile_setFBML_response> >> >> However, no profile box is being added to the page. I assume I''m just >> doing something wrong here. Any ideas? >> >> -Joel >> >> > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20080728/f29d57df/attachment.html>