gpt4 book ai didi

facebook-graph-api - 来自ticket_uri的链接正在打开一个空白页面

转载 作者:行者123 更新时间:2023-12-04 04:41:51 26 4
gpt4 key购买 nike

我有一个PHP页面,它从Facebook粉丝页面提取事件。如果我打开一个隐身窗口(或注销Facebook),然后单击链接,则会打开一个空白页面。我的猜测与访问 token ,FB应用程序的权限和页面的权限有关。任何见识将不胜感激。

ticket_uri尝试打开这样的链接:http://www.facebook.com/ajax/events/ticket.php?event_id=147884225370550&action_source=12。如果已登录,则似乎将其自动转发到事件中的实际票证链接。

这是我正在处理的页面:http://danagould.com/live.php。它是从facebook页面Officialdanagould中提取的

     <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>

最佳答案

尝试将cookie设置为false或全局设置$ fql。另外,您在回调中要说明什么

关于facebook-graph-api - 来自ticket_uri的链接正在打开一个空白页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15180634/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com