9
我有一個從Facebook粉絲頁面拉動事件的PHP頁面。如果我打開隱身窗口(或註銷臉書),然後單擊該鏈接,將打開一個空白頁面。我的猜測是有關訪問令牌,FB應用程序的權限和頁面權限。任何有識之士將不勝感激。ticket_uri的鏈接打開空白頁
ticket_uri嘗試打開如下鏈接:http://www.facebook.com/ajax/events/ticket.php?event_id=147884225370550&action_source=12。如果登錄,它似乎會自動轉發到事件中的實際門票鏈接。
這是我正在處理的頁面:http://danagould.com/live.php。它從Facebook頁面拉出正式版
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody>
<?php
date_default_timezone_set('America/Los_Angeles');
//requiring FB PHP SDK
require 'fb-sdk/src/facebook.php';
//initializing keys
$facebook = new Facebook(array(
'appId' => 'MYAPPID',
'secret' => 'MYAPPSECRET',
'cookie' => true, // enable optional cookie support
));
$fql = "SELECT name, pic, start_time, end_time, location, description, eid, has_profile_pic, venue, ticket_uri
FROM event WHERE eid IN (SELECT eid FROM event_member WHERE uid = 175890419184371 AND start_time > now())
ORDER BY start_time asc";
$param = array(
'method' => 'fql.query',
'query' => $fql,
'callback' => ''
);
$fqlResult = $facebook->api($param);
//looping through retrieved data
foreach($fqlResult as $keys => $values){
$convertedtime = strtotime($values['start_time']);
$start_date = date('F j', $convertedtime);
$content = $values['description'];
//printing the data
echo "<tr>";
echo "<td width='8%'>";
if ($values['has_profile_pic'] == FALSE) {
echo "<img src=img/spacer.gif width='100%'/>";
} else {
echo "<img src={$values['pic']} width='100%'/>";
}
echo "</td>";
echo "<td width='2%'></td>";
echo "<td width='18%' class='tourdate'>{$start_date}</td>";
echo "<td width='49%'>";
echo "<table><tbody><tr><td class='tourlocation'>{$values['name']}</td></tr>";
echo "<tr><td class='poddesc'><p class='poddesc'>At {$values['location']}</p></td></tr></tbody></table>";
echo "<td width='23%' class='getickets'>";
echo "<a href = " . $values['ticket_uri'] . ">Get Tickets</a>";
echo "</td></tr>";
echo "<tr height='5px'></tr>";
}
?>
</tbody>
</table>
我相信在ticket_uri指定的Facebook上的任何事件都是如此。所以我不認爲這是你做錯了什麼。我在https://developers.facebook.com/x/bugs/1465099450371691/上與Facebook記錄了一個錯誤 – Jamey 2014-03-04 22:34:46