i'm not strong english grammar. sorry if word weird.
i have develop first app facebook campaign php. app allow "fans of campaign page" registers information such name,phone,email , record database on cleardb(i'm using heroku) ask 3-4 friends test application must click "like" on fans page or "like box" in app , go registers (if user click "like" in "like box" it's navigate user register page on app automatically).my app request permission ('user_likes') before first used
one of friend.when click "like" in "like box" of campaign page in app.her account locked , facebook show message
your account has been temporarily suspended suspicious activity has been detected on facebook account , has been temporarily suspended security precaution.it account compromised result of entering password on website designed facebook.this type of attack known phishing.
she can't account , must wait until facebook allow security check. i'm not sure it's because of code or else make app unsafe? , i'm sure friend didn't weird on facebook.
if because of code.then part of code should go check or must rewrite?
my php code initial , login part
$page_id = 'xxxxxx'; $app_id = 'xxxxx'; $app_secret = 'xxxxx'; $app_namespace = 'xxxxx'; $app_url = 'https://apps.facebook.com/' . $app_namespace . '/'; $scope = 'user_likes'; $facebook = new facebook(array( 'appid' => $app_id, 'secret' => $app_secret, 'cookie' => true, 'sharedsession' => true, 'trustforwarded' => true, )); if(!$user) { $loginurl = $facebook->getloginurl(array( 'redirect_uri' => $app_url, 'scope' => $scope )); print('<script> top.location.href=\'' . $loginurl . '\'</script>'); }
Comments
Post a Comment