![]() |
Facebook Canvas App Keeps Refreshing? - Printable Version +- Twitist Forums (http://twitist.com) +-- Forum: Facebook forums (/forum-14.html) +--- Forum: Facebook notifications (/forum-24.html) +--- Thread: Facebook Canvas App Keeps Refreshing? (/thread-51700.html) |
Facebook Canvas App Keeps Refreshing? - David Wilson - 12-16-2012 08:00 PM Hi, I am having a problem with a Facebook app. I am following the Facebook Developer tutorial and am using the following code. http://developers.facebook.com/docs/appsonfacebook/tutorial/ <?php $app_id = "MY_APP_ID"; $canvas_page = "MY_APP_CANVASURL"; $auth_url = "http://www.facebook.com/dialog/oauth?client_id=" . $app_id . "&scope=email, user_about_me, publish_stream, publish_actions, manage_notifications&redirect_uri=" . urlencode($canvas_page); $signed_request = $_REQUEST["signed_request"]; list($encoded_sig, $payload) = explode('.', $signed_request, 2); $data = json_decode(base64_decode(strtr($payload, '-_', '+/')), true); if (empty($data["user_id"])) { echo("<script> top.location.href='" . $auth_url . "'</script>"); } else { echo ("Welcome User: " . $data["user_id"]); } ?> When I access the app it all works fine until after I allow permissions. When the app redirects it keeps redirecting with a new code each time. I have to manually leave the app and open it again. Has anyone else encountered this and most importantly can anyone else help me fix this issue? Many thanks @Yuuuup - Thanks but I have already tried doing that and it still does it. - Yuuuup - 12-16-2012 08:08 PM Instructions 1 Log-in to your Facebook account. 2 Click "Account," followed by "Privacy Settings." 3 Locate the "Applications" subheading and click "Edit your settings." 4 Click "Edit Settings" beside the game you wish to reset, followed by "Remove Application." 5 Click the search bar at the very top of the page. Type in the application name and click it when the result appears on your screen. 6 Click "Allow" when asked to install the application. This re-installation resets your information and the game itself |