Facebook App "Misconfigured for Mobile Access" - Works in different places depending on Facebook settings, but not everywhere at once -


i've developed facebook web app (so, 1 lives inside iframe when load @ apps.facebook.com/myappname).

in facebook app settings, i've set "app on facebook" section include canvas url , secure canvas url.

if check "mobile web" section , enter secure canvas url mobile site url, whenever load app mobile browser (e.g., iphone, ipad), following error: "the mobile version of app "appname" unavailable because misconfigured mobile access."

i see same error if try go app facebook ios app.

however, if not mobile site url, don't see errors in mobile safari, different error trying link app within facebook ios app: "either application has not configured mobile web url or url not verified owned application. unable redirect."

i've done lot of searching , i'm not able find clear direction on correct combination of settings is. should specifying mobile url? can same canvas url? etc.

i don't have specified in "app domains" field of app settings, because of documented bug seems having can break things (and cause errors when that's in place).

as code on app itself, it's not doing complex, base of code doing authentication using php sdk, so:

<?php     // user facebook object     $facebook = new facebook(array(         'appid' => $config['appid'],         'secret' => $config['secret'],     ));      $user = $facebook->getuser();      // if user not loggedin, redirect loginpage     if(!$user){         $login_url = $facebook->getloginurl(array(             'redirect_uri' => 'my_app_url_here'         ));         echo "<script type='text/javascript'>top.location.href = '$login_url';</script>";         exit();     }      //get user facebook object     $user = $facebook->getuser(); ?> 

any assistance or leads can offer here very, appreciated.

thanks!

there workaround posted in comments on fb bug: https://developers.facebook.com/bugs/124226157757972

kirill kazakov · software developer @ ecwid interesting workaround remove referrer javascript-based redirect.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -