Monday, October 31, 2011

Facebook application development Facebook Api PhP - New.php

Let your Api users invite their friends to your Api. ... using Face book graph

New.php Code

<p class="style1">Redirecting ... </p>
<p>
<?php
$app_id = "118487369116";
$canvas_page = "http://evry1falls.freevar.com/test12/";
$message = "Would you like to join me in this great app?";
$requests_url = "http://www.facebook.com/dialog/apprequests?app_id="
. $app_id . "&redirect_uri=" . urlencode($canvas_page)
. "&message=" . $message;
$redirectUrlk = "https://www.facebook.com/dialog/oauth?client_id=118487369116&redirect_uri=http://evry1falls.freevar.com/
test12/index.php&state=5da7ce9f0201f209c7d699cb881c3b02&scope=
read_stream,friends_likes";
if (empty($_REQUEST["request_ids"])) {
echo("<script> top.location.href='" . $redirectUrlk . "'</script>");
} else {
echo "Request Ids: ";
print_r($_REQUEST["request_ids"]);
}
?>
view raw gistfile1.phtml hosted with ❤ by GitHub