Facebook App Not Working in Safari -


I recently developed a Facebook app using php. Although the app works in all browsers, but it is not in Safari, it returns me to the first app stage after trying to post it to a user's wall. My code is low.

My app displays a user friend list, and allows one to select friends and post on their wall.

  & lt ;? Php is required ("facebook-api / src / facebook.php"); $ Facebook = New Facebook (array ('appId' = & gt; '####', 'secret' => '####', 'cookie' => true)); // Based on current user status, login or logout url will be required. $ Params = Array ('scope' = 'gt;' email, user_bird, friend_photo, published_stream ',' redirect_urie '=>' https://apps.facebook.com/appname/ '); If ($ user) {$ logoutUrl = $ facebook- & gt; GetLogoutUrl (); } And {$ loginUrl = $ facebook-> gt; GetLoginUrl ($ params); } $ User = $ facebook-> GetUser (); If ($ user) {$ friends = $ facebook-> API ('me / friend'); $ Uids = ""; Foreign currency ($ $ friend $ F) {$ uids. = "Uid = $ f OR"; } $ User_id_sess = $ _SESSION ['userid']; $ Query_uids = substr ($ uids, 0, strangel ($ query_uids -4); Date_default_timezone_set ('UTC'); $ Today = Date ('m / d'); $ Data = $ facebook-> API (arrays ('method' = & gt; 'fql.query', 'req_perms' = & gt; 'friends_birthday', 'query' = & gt; Select "UID, gender, name, birthday, user where uid (Select UID2 from a friend where UID1 = ME ()) named ASC ");); Echo "& lt; div class = 'span12 center-align' style = 'display: none;' Id = 'block3' & gt; form id = 'frmFb' name = 'frmFb' verb = ''. $ _ Server ['PHP_SELF']. '' Method = 'post' & gt; & lt; P & gt; & lt; img src = '.. / static / images / logo.png' alt = 'Logo' /> & lt; / p & gt; & lt; br / & gt; & lt; H1 style = 'margin-down: 10px;' & Gt; Friends & lt; / h1 & gt; & lt; p id = 'Progress' style = 'display: none;' & Gt; & lt; img src = 'static / img / processing .gif' alt = 'processing' /> 
= div class = 'center-alignment is well- Center 'style =' max-height: 300px; overflow: auto; ' & Gt; "; Forex Currency ($ Data Today as Today) {// $ table = 'user_recipient'; $ Remfbid = $ today_bday ['UID']; $ Fb_bday = $ today_bday ['birthday']; Echo "& lt; div style = 'width: 50px; height: 110px; margin: 15px; float: left;' Class = 'center-align' & gt; & lt; a href = '#' class = 'thumbnail' '& lt; img src =' https: //graph.facebook.com/ ". $ Today_day ['UID'] '/' Picture 'square =' friend 'alt =' '. $ 'Today_days [' name '].' '& Gt; & Lt; / A & gt; & Lt; Input type = 'checkbox' name = 'fbchoose []' value = ''. $ Lt; / L & gt; & Lt; / P & gt; & Lt; Br / & gt; & Lt; & Lt; & Lt; & Lt; & Lt; P & gt; & Lt; P & gt; & Lt; Small & gt; Br / & gt; & Lt; / Div & gt; ";} Echo" & lt; / Div & gt; & Lt; Br / & gt; & Lt; A href = '#' class = 'btn btn-inverted btn-big' & gt; & Lt; I class = 'icon-restriction-circle icon-white' style = 'margin-top: 4px;' & Gt; & Lt; / I & gt; Cancel & lt; / A & gt; & Lt; Input type = 'submit' value = 'share' name = 'btn adrimeminder' class = 'btn btn-success btn-large' onclic = 'show ()' & gt; & Lt; / Form & gt; & Lt; / Div & gt; ";} Other {resonant <" & lt; P & gt; & Lt; Script & gt; Top. place. Hr = '$ loginUrl'; & Lt; / Script & gt; & Lt; / P & gt; "?}? & Gt? K location.href = 'http: //www.mywebsite.com/'; "; }}? & Gt; Under "Privacy" in safari preferences, never set "block cookies"



Comments