Slideshow transcript
Slide 1: P a rt of th e F a c e book De ve lope r G a ra g e s e rie s
Slide 2: Pro file S e c urity Controlle d E xte rna l Conte nt – Cons is te nt pre s e nta tion – Us e r E xpe rie nc e Conte nt R ule s – No iF ra me s – No a uto-run for F la s h a nd S ilve rlig h t Ca c h ing – P rofile B oxe s a re c a c h e d – Limit loa d on your s e rve r – R e quire e xplic it upda te
Slide 3: Me tho ds fo r Pro file Update profile _s e tF B ML() – Us e r a c c e s s re s tric te d fb:re f – UR L – Ha ndle
Slide 4: fb:re f me tho d <fb :re f h a ndle =\"HANDLE _HE R E \" / > or <fb :re f url=\"h ttp:/ a c m e .c a / / upda te .ph p? h a ndle =HANDLE _HE R E \" /> Th e n: fa c e b ook.fb m l.s e tR e fHa ndle (\"HANDLE _HE R E \", \"F B ML_C onte nt\") or fa c e b ook.fb m l.re fre s h R e fUrl(\"h ttp:/ a c m e .c a / / upda te .ph p? h a ndle = HANDLE _HE R E \") Note : Multiple Ha ndle s pos s ible in th e profile pa g e , ma s s upda te s a nd 1 to ma ny upda te s Infinite S e s s ion R e quire d
Slide 5: Infinite s e s s io n Ma inta ins a n infinite s e s s ion for th e a pplic a tion de ve lope r to ma ke upda te s , re quire d to run: – profile _s e tF B ML() – fa c e book.fbml.s e tR e fHa ndle () – fa c e book.fbml.re fre s h R e fUrl() Note : Us e r's c a n upda te th e ir own profile s , infinite s e s s ion is only re quire you wa nt to upda te th e profile with out th e m inte ra c ting with your a pplic a tion.
Slide 6: Ge t Infinite S e s s io n <? ph p / Inc lude th e fa c e book libra ry c onfig file s . / $fa c e book = ne w F a c e book($a pi_ke y, $s e c re t); / forc e a log in pa g e / $fa c e book->re quire _fra me (); $us e r = $fa c e book->re quire _log in(); / E c h o th e \"infinite s e s s ion ke y\" th a t e ve ryone ke e ps / ta lking a bout. e c h o $fa c e book->a pi_c lie nt->s e s s ion_ke y; ?> Note : Log out a nd g o to Ca llba c k UR L
Slide 7: Us e S e s s io n Ke y <? ph p / Inc lude th e fa c e book libra ry c onfig file s . / $fa c e book = ne w F a c e book($a pi_ke y, $s e c re t); $us e r = YOUR _F ACE B OOK_US E R _ID; $ke y = S E S S ION_KE Y_WE _P R OCUR E D_AB OVE ; / Allows \"you\" to run your s c ript / $fa c e book->s e t_us e r($us e r, $ke y);



Add a comment on Slide 1
If you have a SlideShare account, login to comment; else you can comment as a guest- Favorites & Groups
Showing 1-50 of 1 (more)