开发者

Using rendered facebook name in title of created Event

开发者 https://www.devze.com 2023-03-22 04:22 出处:网络
Is there a way to have a facebook rendered name used in the title or any field of a created event? when I place

Is there a way to have a facebook rendered name used in the title or any field of a created event?

when I place

$name="Welcome to a <fb:name uid=\"$friend1\" /> Event";

in the event array,

$event_param = array(
"access_token" => $params['access_token'],
"name" => $name,
"start_time" => $nextWeek,
"location" => $place
);

the created event is literally titled:

Welcome to a fb:n开发者_如何学Goame uid=\"100089XXXXXXX" / Event

i can't put on the < > around the fb tag in this forum because it won't show up, but you get the idea


No this isn't possible, the event name is static and doesn't parse the old FBML tags. Assuming you already have an access token for the user (which you probably do if you want to post a new event) you could just pull the user's name from the API and use that directly

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号