Annulé

Facebook Iframe

hi all,

i have a facebook iframe tab when someone press like its opens him a box with a button named "view" ,

when the person clicks on the button he is redirecting to the photos page in the facebook fan page to see the the photos.

i want instead of the box the opens to redirect the person directly after he pressed liked to the photos page without any box or any button.

and another thing i noticed that when right now when you press the view button, the photos page is opening in the same iframe and its look funny like faceook inside facebook.

so i need like a redirect command , instead of opening a box with button view , i want the browser to reload a different page (the photo page) and go out from the iframe , like refresh the browser to a different page so it will go out form the iframe.

i attached here the code of my page:

<?php

header('Content-type: text/html; charset=utf-8');

// prevent from caching

header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');

header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');

header('Cache-Control: no-store, no-cache, must-revalidate');

header('Cache-Control: post-check=0, pre-check=0', false);

header('Pragma: no-cache');

define('BASE_DIR', './');

/**

* Check liked

* return bool

*/

function isLiked() {

$data = getData();

return $data[page][liked];

}

/**

* Get signed request data

* return array

*/

function getData () {

$signed_request = $_REQUEST[signed_request];

list($encoded_sig, $payload) = explode('.', $signed_request, 2);

return json_decode(base64_decode(strtr($payload, '-_', '+/')), true);

}

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[url removed, login to view]">

<html xmlns="[url removed, login to view]">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" type="text/css" href="style/[url removed, login to view]" />

<title>Lorem Ipsum</title>

<script src="[url removed, login to view]"></script>

<script>

[url removed, login to view]();

</script>

<script language="javascript" type="text/javascript" src="js/[url removed, login to view]"></script>

<script type="text/javascript">

$(document).ready(function(){

$("#btn").click(function(){

$(".downloadBox").hide();

});

$("#videoImg").click(function(){

$(this).hide();

});

});

</script>

</head>

<body>

<!--start wraper-->

<div class="wraper">

<!--======start Main area-->

<div class="main">

<!--======start Header-->

<div class="header">

<img src="images/[url removed, login to view]" alt="arrow" />

<span>Click <b>"Like"</b>Above</span>

<p>xxx xxxx</p>

<i>Jxxxxxxxxxxxxxxxxxxxxxxxxxxx</i>

</div>

<!--===========start box-->

<div class="box">

<div class="video">

<object width="480" height="300"><param name="movie" value="[url removed, login to view]"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="[url removed, login to view]" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="300"></embed></object>

</div>

<?php

if ( isLiked() ) {

?>

<div class="downloadBox" id="shBtn">

<b>Thanks for liking this page</b>

<a class="btnDownload" href="xxxxxxx"><img src="images/[url removed, login to view]" alt="download btn"></a>

<a href="#" id="btn">Show / Hide</a>

</div>

<?php

}

?>

</div>

<!--===============start content Text-->

<div class="conText">

<b><u>x x x x </u></b>

<p>xxxxxxxxxx xxxxxxxxxx xxxxxxxxxxx</p>

</div>

<!--===============end content Text-->

</div>

<!--======end main area-->

<!--========start footer==============-->

<div class="footer">

<b>Join Us</b>

<ul class="footerNav">

<li><a href="[url removed, login to view]://[url removed, login to view]" title="Share with us on facebook" target="_blank"><img src="images/[url removed, login to view]"/></a></li>

<li><a href="mailto:xxxxx"><img src="images/[url removed, login to view]" alt="mail btn" /></a></li>

<li><a href="[url removed, login to view]" target="_blank"><img src="images/[url removed, login to view]" alt="twitter btn" /></a></li>

</ul>

</div>

<!--========end footer==============-->

</div>

<!--end wraper-->

<div id="fb-root"></div>

</body>

</html>

now, in the 71 line it start the commands of what to do after its liked:

<?php

if ( isLiked() ) {

?>

<div class="downloadBox" id="shBtn">

<b>Thanks for liking this page</b>

<a class="btnDownload" href="xxxxxxx"><img src="images/[url removed, login to view]" alt="download btn"></a>

<a href="#" id="btn">Show / Hide</a>

</div>

<?php

}

?>

</div>

i want to change it to redirect , lets say to [url removed, login to view] and not open in the iframe tab of facebook.

Matan

Compétences : Marketing sur Facebook, HTML, Javascript, PHP, Design de site internet

en voir plus : u.p.s. store, ul com, this class jquery, the u.p.s. store, shockwave com, png download, php download youtube video script, photo video store script, photo store script, min its com, m.facebook com, lorem ipsum do, jquery main js, jquery class, jquery 1.11 3 min js, jquery 1.11 2 min js, jquery 1.11 2, i need a facebook id, http www facebook com, html code share button

Concernant l'employeur :
( 23 commentaires ) raanana, Israel

Nº du projet : #1186110

5 freelance font une offre moyenne de $70 pour ce travail

MuktoSoftware

I can fix your problem within an hour as I have necessary experience.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 0 jours
(411 Commentaires)
7.4
solutionD

Hello, I have the solution for this. Please let me know if you are interested. I can finish this within an hour. Thanks,solutiond

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 0 jours
(67 Commentaires)
6.4
vinay2110

Interested in this project. Please view PM for more details. Thanks

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(18 Commentaires)
4.5
WebXavier

Hello, metalice. I'm the facebook developer and ready to start your project, please send me the detailed specification. Hope for successful cooperation

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(4 Commentaires)
3.5
BrilliantMinds

COntact me ASAP Dear Hiring Manager. Done similar workmany times It will be easy for me to do it again. Waiting for an Early and Positive Response.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(2 Commentaires)
2.7