thanks for explaining how it works.
btw, this is my profile_main:
my $profmain = qq{<div>my profile main</div>};
I haven't actually found any good example of a valid profile_main, but I figured I start with a simple div. Maybe there's some <fb> tag that's required in profile_main ?
It'd be great if I could take a look at your friend's working example
thanks
--- On Tue, 8/12/08, clayton.scott@gmail.com via RT <bug-WWW-Facebook-API@rt.cpan.org> wrote:
> From: clayton.scott@gmail.com via RT <bug-WWW-Facebook-API@rt.cpan.org>
> Subject: Re: [rt.cpan.org #37840] update request
> To: amicwall@yahoo.com
> Date: Tuesday, August 12, 2008, 8:27 AM
> <URL:
http://rt.cpan.org/Ticket/Display.html?id=37840
> >
>
> Hi Alfred,
> Thanks for the information.
>
> The way the calls to facebook work is we will just bundle
> up any
> parameter you specify, send it to facebook and let facebook
> return an
> error (that you can look for with last_call_success).
>
> One of my co-workers has successfully used the
> profile_main. I'll talk
> to him and see if I can get any more insight into testing
> it.
>
> One thing to note is that the profie_main is very strict
> about what
> FBML can be included:
>
http://wiki.developers.facebook.com/index.php/New_Design_Narrow_Boxes
> i.e they can't have fb:wide or fb:narrow tags
>
> You might try using profile->get_fbml(uid => $uid,
> type => 2);
>
http://wiki.developers.facebook.com/index.php/Profile.getFBML
> to retrieve the FBML in that slot.
>
> I will play more with these techniques this evening to see
> if there is
> any more we need to do to get it working.
>
> On Mon, Aug 11, 2008 at 6:46 PM, amicwall@yahoo.com via RT
> <bug-WWW-Facebook-API@rt.cpan.org> wrote:
> > Queue: WWW-Facebook-API
> > Ticket <URL:
>
http://rt.cpan.org/Ticket/Display.html?id=37840 >
> >
> > hi Clayton
> > thanks for responding. I installed the latest version
> 13.
> >
> > I make the following call:
> > my $ret = $facebook->profile()->set_fbml(uid
> => $fbid, profile => $profile, profile_main =>
> $profmain);
> > which returns 1
> >
> > then I try to set the section button:
> > <fb:if-section-not-added
> section="profile"><fb:add-section-button
> section="profile"/></fb:if-section-not-added>
> > but it does not show up. Facebook says make sure you
> call profile_main before setting the button, otherwise the
> button won't show
> >
> >
> > so then I looked at WWW-Facebook-API.pm, and I found
> this:
> > $response = $client->profile->set_fbml( uid
> => 5,
> > profile => 'markup',
> > profile_action => 'markup',
> > mobile_profile => 'markup',
> > );
> >
> > so shouldn't there be some mention of profile_main
> somewhere ? I also grepped thru the remaining files and
> found no instance of profile_main.
> >
> > So that's why I assumed it's not supported yet
> ?
> > but now you say it is ?
> > thanks
> > Alfred
> >
> >
> >
> >
> >
> > --- On Mon, 8/11/08, clayton.scott@gmail.com via RT
> <bug-WWW-Facebook-API@rt.cpan.org> wrote:
> >
> >> From: clayton.scott@gmail.com via RT
> <bug-WWW-Facebook-API@rt.cpan.org>
> >> Subject: Re: [rt.cpan.org #37840] update request
> >> To: amicwall@yahoo.com
> >> Date: Monday, August 11, 2008, 4:43 AM
> >> <URL:
>
http://rt.cpan.org/Ticket/Display.html?id=37840
> >> >
> >>
> >> profile_main _is_ supported.
> >>
> >> my $fb = WWW::Facebook::API->new();
> >>
> >> $fb->profile->set_fbml(uid => $uid,
> profile_main
> >> => 'my profile fbml',
> >> profile => 'content for the boxes
> tab');
> >>
> >> What specific issues are you encountering?
> >>
> >>
> >> Clayton
> >>
> >> On Sat, Aug 9, 2008 at 8:59 PM, amicwall@yahoo.com
> via RT
> >
> >> >
> >> > sorry to post back to you, but the cpan
> registration
> >> doesn't work, so I can't post there
> >> >
> >> > I got version 4.13, but they still don't
> support
> >> profile_main
> >> >
> >> > can you forward or connect me with the new
> developers
> >> ?
> >> > thanks
> >> >
> >> >
> >> > --- On Wed, 7/30/08, David Romano via RT
> >> <bug-WWW-Facebook-API@rt.cpan.org> wrote:
> >> >
> >> >> From: David Romano via RT
> >> <bug-WWW-Facebook-API@rt.cpan.org>
> >> >> Subject: [rt.cpan.org #37840] update
> request
> (on its way
> >> to
> >> >> CPAN). Major
> >> >> thanks to CLSCOTT for the patches!
> >> >
> >> >
> >> >
> >> >
> >> >
> >>
> >>
> >>
> >> --
> >>
> >> Clayton Scott
> >> clayton.scott@gmail.com
> >
> >
> >
> >
> >
>
>
>
> --
>
> Clayton Scott
> clayton.scott@gmail.com