facebook iframe app
March 20th, 2022
simple flash game embed in a html script using iframe option in facebook sitting
the only problem that people can open my app without login to facebook and thats make the total users for my app ‘0’
there is a require login works with php scripts
<?php
require_once 'facebook.php';
$appapikey = 'yyyyyyyyyyyyyyyyyyyyyyyyy';
$appsecret = 'xxxxxxxxxxxxxxxxxxxxxxxxx';
$facebook = new Facebook($appapikey, $appsecret);
$user_id = $facebook->require_login();
?>
but I cant use in my html page
so any one can help me to use this code thanks in advance
You need a webserver which supports PHP,
try adding this to the top.
Try this:
<?php
error_reporting(E_ALL);
require_once 'facebook.php';
$appapikey = 'yyyyyyyyyyyyyyyyyyyyyyyyy';
$appsecret = 'xxxxxxxxxxxxxxxxxxxxxxxxx';
$facebook = new Facebook($appapikey, $appsecret);
$user_id = $facebook->require_login();
?>