[英]Can I send a message to a friend using the id, using using Facebook Graph API v2.4?
我需要你的幫助!
我收到了來自“ / me / taggable_friends”的朋友列表,如下所示:
Array
(
[id] => AaL-5tuNqmauktZphAAI3V1oMW...
[name] => Name Surname
[picture] => Array
(
[is_silhouette] =>
[url] => https://fbcdn-profile...5101399123_n.jpg
)
)
我可以使用此TokenID向我的朋友發送消息嗎?
我用:
FB.ui({
method: 'send',
link: {url},
to: id
}
還有其他發送消息給朋友的方式嗎?
是否可以獲取真實朋友的個人資料ID?
還: https : //www.facebook.com/groups/fbdevelopers/permalink/945186472191534/
您可以在彈出窗口中打開“ 發送對話框” 。
$parameters = array(
'app_id' => $facebook->getAppId(),
'to' => $facebookUserId,
'link' => 'http://google.nl/',
'redirect_uri' => 'http://my.app.url/callback'
);
$url = 'http://www.facebook.com/dialog/send?'.http_build_query($parameters);
echo '<script type="text/javascript">window.open('.json_encode($url).', ...
有關詳細選項,請參見: https : //developers.facebook.com/docs/reference/dialogs/send/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.