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

Facebook graph api-如何獲取用戶提要,而沒有用戶關(guān)

Facebook graph api- how to get user feed,with out posts about likes and comment by the user?(Facebook graph api-如何獲取用戶提要,而沒有用戶關(guān)于喜歡和評(píng)論的帖子?)
本文介紹了Facebook graph api-如何獲取用戶提要,而沒有用戶關(guān)于喜歡和評(píng)論的帖子?的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

我正在開發(fā)一個(gè) fb 應(yīng)用程序,我想在其中為用戶提供時(shí)間線,但我需要排除諸如用戶喜歡照片"、朋友照片上的評(píng)論"之類的故事.我如何過濾和排除這些類型的故事

i am developing a fb app,in which i want to give the users time line,but i need to exclude stories like "User likes a photo","coments on friends's photo".how i filter and exclude these types of stories

推薦答案

你可以過濾這些 Posts 通過查找 storystory_tags 鍵的存在,因?yàn)檫@些在用戶發(fā)布的帖子中不存在.

You can filter these Posts by looking for the presence of the story or story_tags key as these is not present in the Posts made by the User.

引用文檔中story的描述代碼>鍵

非用戶故意生成的故事文本,例如兩個(gè)用戶成為朋友時(shí)生成的故事;您必須在您的應(yīng)用中啟用包括最近的活動(dòng)故事"遷移才能檢索這些故事

Text of stories not intentionally generated by users, such as those generated when two users become friends; you must have the "Include recent activity stories" migration enabled in your app to retrieve these stories

或者你可以像這樣嘗試 FQL 的stream

Or you may try FQL's stream like this

select message from stream where source_id=me() and type in (46,56,80,56,128,247)
and filter_key in (select filter_key from stream_filter where uid=me())

這可能會(huì)幫助您將帖子減少到您想要的帖子.

which might help you to reduce the Posts to one that you desire.

更新

您可能不需要使用林果皞驗(yàn)證的 type 字段來減少結(jié)果,因此查詢減少到

You might not require to reduce the result using type field as verified by 林果皞 , so the query reduces to

select message from stream where source_id=me() AND filter_key in
(select filter_key from stream_filter where uid=me())

這篇關(guān)于Facebook graph api-如何獲取用戶提要,而沒有用戶關(guān)于喜歡和評(píng)論的帖子?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

相關(guān)文檔推薦

Joining 2 tables in SELECT(MYSQL/PHP)(在 SELECT(MYSQL/PHP) 中加入 2 個(gè)表)
How to make lt;option selected=quot;selectedquot;gt; set by MySQL and PHP?(如何使lt;option selected=“selectedgt;由 MySQL 和 PHP 設(shè)置?)
Auto populate a select box using an array in PHP(使用 PHP 中的數(shù)組自動(dòng)填充選擇框)
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 產(chǎn)生 JSON_ERROR_UTF8)
MySQL ORDER BY rand(), name ASC(MySQL ORDER BY rand(),名稱 ASC)
主站蜘蛛池模板: 亚洲一区综合 | 在线播放一区二区三区 | 色综合色综合网色综合 | 宅女噜噜66国产精品观看免费 | 午夜精品一区二区三区三上悠亚 | 久久久国产一区二区三区 | 国产成人亚洲精品自产在线 | 日日躁狠狠躁aaaaxxxx | 欧美美女一区二区 | 瑟瑟视频在线看 | 在线精品观看 | 精品国产一区二区三区观看不卡 | 波多野结衣二区 | 欧美日韩精品区 | 欧美一区日韩一区 | 国产一级免费在线观看 | 色视频一区二区 | 国产jizz女人多喷水99 | 国产成人免费视频 | 亚洲精品久久久蜜桃 | 中文字幕精品一区二区三区精品 | 欧美精品在线一区二区三区 | 国产精品久久久久一区二区三区 | 一区视频在线 | 一区二区视频在线 | 国产黄色网 | 精品在线一区二区三区 | 国产一区二区三区视频免费观看 | 亚洲激情视频在线 | 亚洲视频一区在线观看 | 免费在线观看一级毛片 | 国产精品毛片久久久久久久 | av黄色在线 | 亚洲天堂日韩精品 | 成人国产a| 亚洲国产精品一区 | 亚洲欧美日韩在线不卡 | 久久久av中文字幕 | 欧美一卡二卡在线观看 | 国产精品久久7777777 | 激情一区二区三区 |