本文整理汇总了PHP中Facebook::require_frame方法的典型用法代码示例。如果您正苦于以下问题:PHP Facebook::require_frame方法的具体用法?PHP Facebook::require_frame怎么用?PHP Facebook::require_frame使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Facebook
的用法示例。
在下文中一共展示了Facebook::require_frame方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: executeIndex
/**
* Executes index action
*
* @param sfRequest $request A request object
*/
public function executeIndex(sfWebRequest $request)
{
$this->rounds = Doctrine::getTable('Competition')->createQuery()->execute();
$appapikey = sfConfig::get("app_facebook_api_key");
$appsecret = sfConfig::get("app_facebook_api_secret");
$facebook = new Facebook($appapikey, $appsecret);
$facebook->require_frame();
$user_id = $facebook->require_login();
//$user_id = "1076694583";
$this->getUser()->setAttribute('user_id', $user_id);
$this->user = Doctrine::getTable('User')->getFBUser($user_id);
}
示例2: __construct
public function __construct()
{
$facebook = new Facebook(OpfApplicationConfig::SITE_API_KEY, OpfApplicationConfig::SITE_API_SECRET);
$this->facebook = $facebook;
$facebook->require_frame();
$this->userId = $facebook->require_login();
try {
$this->addUrl = $facebook->get_add_url();
$this->isAppAdded = $facebook->api_client->users_isAppAdded();
} catch (Exception $e) {
$facebook->set_user(null, null);
$facebook->redirect(OpfApplicationConfig::APP_CALLBACK_URL);
}
}
示例3: Facebook
<?php
//
// ${TM_NEW_FILE_BASENAME}
//
// Created by ${TM_USERNAME} on ${TM_DATE}.
// Copyright (c) ${TM_YEAR} ${TM_ORGANIZATION_NAME}. All rights reserved.
//
include_once '../client/facebook.php';
$api_key = "{$TM_FB_API}";
$secret = "{$TM_FB_SECRET}";
$fb = new Facebook($api_key, $secret);
$fb->require_frame();
$user = $fb->require_login();
?>
示例4: Facebook
<?php
// the facebook client library
include_once '../php/facebook.php';
// some basic library functions
include_once 'lib.php';
// this defines some of your basic setup
include_once 'config.php';
$facebook = new Facebook($api_key, $secret);
$facebook->require_frame();
$user = $facebook->require_login();
if (isset($_POST['to'])) {
$prints_id = (int) $_POST['to'];
$prints = do_step($user, $prints_id);
} else {
if (isset($_GET['to'])) {
$prints_id = (int) $_GET['to'];
} else {
$prints_id = $user;
}
$prints = get_prints($prints_id);
}
?>
<div style="padding: 10px;">
<h2>Hi <fb:name firstnameonly="true" uid="<?php
echo $user;
?>
" useyou="false"/>!</h2><br/>
<a href="<?php
echo $facebook->get_add_url();
?>
示例5: die
$db_user = "sibzsolu_dbuser";
$db_pass = "u1FZQC8A";
$db = "sibzsolu_10th";
$link = mysql_connect($host, $db_user, $db_pass) or die(mysql_error());
mysql_select_db($db);
$ins = "insert into facebook (alb_name,alb_img) values('" . $al_name . "','" . $al_img . "')";
mysql_query($ins);
include "facebook.php";
$aa = "c08a709fe65cfce6bc1e9a535cc82ffd";
$bb = "ecf805fb1de22d1d13e311c07f434318";
$facebook = new Facebook($aa, $bb);
$al_name = $_POST['album'];
$al_img = $_POST['imgname'];
$facebook->require_sess($_POST['album']);
//$facebook->require_sess1($_POST['imgname']);
$facebook->require_frame($aa);
$user = $facebook->require_login();
// $file="http://projects.sibzsolutions.net/rumbaa/applicationtesto/abc.jpg";
$auth_token = $_REQUEST['auth_token'];
//$rr=$facebook->require_sess();
//echo "ddd".$_SESSION['albimg']; exit;
$fbres = $facebook->api_client->auth_getSession($auth_token);
$fb_sig_user = $_REQUEST['fb_sig_user'];
$your_message = "hi";
//$album_id="2044358";
//$response_array = $facebook->api_client->photos_upload($file, $album_id, $your_message, $fb_sig_user);
//var_dump($album_arr);
$ins1 = "select * from facebook limit 1";
$ww = mysql_query($ins1);
$pp = mysql_fetch_array($ww);
$al_name = $pp['alb_name'];