久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

在來自 Facebook API 的狀態更新中標記朋友

Tagging friends in status updates from Facebook API(在來自 Facebook API 的狀態更新中標記朋友)
本文介紹了在來自 Facebook API 的狀態更新中標記朋友的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我最近遇到了 這篇博文 說可以在來自 Facebook 應用(=來自 API)的狀態更新中標記某人:

但是,它似乎對我不起作用.

它嘗試了三種不同的方式:

$post = $facebook->api('/me/feed', 'post', array('access_token' =>$session['access_token'],'消息' =>你好@[562372646:Lionel Cordier],你好嗎?"));

$access_token = $session['access_token'];$message = '你好@[562372646:Lionel Cordier],你好嗎?';$curl_post = 'access_token='.$access_token.'&message='.$message;$ch = curl_init();curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/me/feed');curl_setopt($ch, CURLOPT_HEADER, 1);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_POST, 1);curl_setopt($ch, CURLOPT_POSTFIELDS, $curl_post);$data = curl_exec($ch);curl_close($ch);

$access_token = $session['access_token'];$message = '你好@[562372646:Lionel Cordier],你好嗎?';$curl_post = 'access_token='.$access_token.'&status='.$message;$ch = curl_init();curl_setopt($ch, CURLOPT_URL, 'https://api.facebook.com/method/users.setStatus');curl_setopt($ch, CURLOPT_HEADER, 1);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_POST, 1);curl_setopt($ch, CURLOPT_POSTFIELDS, $curl_post);$data = curl_exec($ch);curl_close($ch);

但沒有任何效果.我的結果是Hello @[562372646:Lionel Cordier],你好嗎?"在我的墻上.

但如果我直接在 Facebook 中輸入Hello @[562372646:Lionel Cordier],你好嗎?",它就可以正常工作.

我做錯了什么?

解決方案

上周我一直在努力解決這個問題,并發現了以下錯誤報告,它表明(鑒于當前的 ASSIGNED 狀態)還無法完成:(

http://developers.facebook.com/bugs/395975667115722/>

I recently came across this blog post that said that it's possible to tag someone in a status update from a Facebook app (= from the API):

However, it doesn't seem to work for me.

It tried it in three different ways:

$post = $facebook->api('/me/feed', 'post', array(
    'access_token' => $session['access_token'],
    'message' => 'Hello @[562372646:Lionel Cordier], how are you?'
));

or

$access_token = $session['access_token'];
$message = 'Hello @[562372646:Lionel Cordier], how are you?';
$curl_post = 'access_token='.$access_token.'&message='.$message;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/me/feed');
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $curl_post);
$data = curl_exec($ch);
curl_close($ch);

or

$access_token = $session['access_token'];
$message = 'Hello @[562372646:Lionel Cordier], how are you?';
$curl_post = 'access_token='.$access_token.'&status='.$message;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.facebook.com/method/users.setStatus');
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $curl_post);
$data = curl_exec($ch);
curl_close($ch);

But nothing works. The result I have is "Hello @[562372646:Lionel Cordier], how are you?" on my wall.

But if I type "Hello @[562372646:Lionel Cordier], how are you?" directly in Facebook, it works correctly.

What am I doing wrong?

解決方案

I was struggling with this problem last week and found the following bug report, which suggests (given the current ASSIGNED status) that it cannot be done yet:(

http://developers.facebook.com/bugs/395975667115722/

這篇關于在來自 Facebook API 的狀態更新中標記朋友的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Joining 2 tables in SELECT(MYSQL/PHP)(在 SELECT(MYSQL/PHP) 中加入 2 個表)
How to make lt;option selected=quot;selectedquot;gt; set by MySQL and PHP?(如何使lt;option selected=“selectedgt;由 MySQL 和 PHP 設置?)
Auto populate a select box using an array in PHP(使用 PHP 中的數組自動填充選擇框)
PHP SQL SELECT where like search item with multiple words(PHP SQL SELECT where like search item with multiple words)
json_encode produce JSON_ERROR_UTF8 from MSSQL-SELECT(json_encode 從 MSSQL-SELECT 產生 JSON_ERROR_UTF8)
MySQL ORDER BY rand(), name ASC(MySQL ORDER BY rand(),名稱 ASC)
主站蜘蛛池模板: 欧美国产日韩在线观看 | 久久久久久久久久久蜜桃 | 免费不卡视频 | 欧美爱爱视频 | 成人在线一区二区三区 | 免费精品视频一区 | 国产精品自拍视频网站 | 欧美啪啪网站 | 日韩网站在线观看 | 色婷婷综合久久久中文字幕 | 欧美精三区欧美精三区 | 精品免费在线 | 亚洲综合一区二区三区 | 大学生a级毛片免费视频 | 日韩第一区 | 三级成人在线 | 国产成人精品一区二 | 日韩三级视频 | 成人片免费看 | 中文字幕亚洲精品在线观看 | av中文字幕在线 | 成年人在线播放 | 999精品视频 | 色吧色综合 | 九九久久这里只有精品 | 欧美久久一区二区三区 | 欧美精品久久久久 | 国产精品久久一区二区三区 | 久久久久久国产精品 | 一道本不卡视频 | 久久久123 | 亚洲精品2区| 欧美精品一区二区在线观看 | 国产精品自拍视频网站 | 欧美视频 | 欧美日韩一区二区在线观看 | 国产色婷婷精品综合在线手机播放 | 亚洲精品久久久久久久久久久久久 | 国产成人精品区一区二区不卡 | 婷婷综合网 | 久久99成人 |