我在我的iframe Facebook应用程序中有以下代码
<?php
/* include the PHP Facebook Client Library to help
with the API calls and make life easy */
require_once 'facebook.php';
$appapikey = 'key here';
$appsecret = 'secret here';
$facebook = new Facebook($appapikey, $appsecret);
$facebook->require_frame();
$user_id = $facebook->require_login();
?>问题是应用程序不断地加载和重新加载。
我的实现是错误的吗?
发布于 2011-02-21 18:23:29
您还没有在那里添加任何检查。每次都只是登录而已。您必须检查用户是否已登录,如果用户未登录,则必须运行此代码,否则执行此操作。我猜你一定有fb php sdk,请查看它的演示示例。如果你没有得到它,请从here下载。
https://stackoverflow.com/questions/5063780
复制相似问题