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

向非 Facebook 用戶顯示 Facebook 帖子

Displaying Facebook posts to non-Facebook users(向非 Facebook 用戶顯示 Facebook 帖子)
本文介紹了向非 Facebook 用戶顯示 Facebook 帖子的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

有沒有一種方法可以在不要求用戶登錄的情況下將 Facebook 內容(特別是來自公共頁面的墻貼)顯示在網站上?在離線訪問權限被棄用之前,我會簡單地創建一個令牌作為我自己,存儲它,并根據需要提取信息.

Is there a way to pull Facebook content (specifically wall posts from a public page) to display on a website without Facebook requiring a user login? Before the offline_access permission was deprecated, I would simply create a token as myself, store it, and pull the information as needed.

現在,據我所知,我只有兩個選擇:1) 每 60 天手動更新一次該令牌,或 2) 僅向 Facebook 用戶顯示內容并使他們允許"應用程序.顯然#1 不是首選選項,#2 似乎不是很好的做法.

Now, from what I can figure out, the only two options I have are to 1) manually update that token every 60 days, or 2) display the content only to Facebook users AND make them "allow" the app. Obviously #1 is not a preferred option, and #2 doesn't seem like very good practice.

作為參考,我只是嘗試從可公開訪問的頁面墻中提取內容,不需要代表用戶執行任何操作(無墻發帖、無閱讀流等).

For reference, I'm only trying to pull content from a publically accessible page wall and require no action on behalf of the user (no wall posting, no reading stream, etc).

這似乎是一個非常簡單的概念,我覺得我必須遺漏一些東西.我在任何地方都找不到答案.這些真的是我唯一的兩個選擇嗎?任何反饋將不勝感激.

This seems like a really simple concept, and I feel like I have to be missing something. I can't find an answer anywhere. Are these really my only two options? Any feedback would be much appreciate.

更新:

我想我可能已經找到了解決這個問題的方法.隨著 offline_access 被棄用,有一個 fb_exchange_token 選項可用于延長現有令牌的到期時間.撥打以下電話:

I think I may have found a way around this. With offline_access being deprecated, there is an fb_exchange_token option available to extend the expiration of an existing token. With a call to the following:

https://graph.facebook.com/oauth/access_token?client_id={app_id}&client_secret=
{app_secret}&grant_type=fb_exchange_token&fb_exchange_token={existing_token}

您應該會收到一個過期時間延長的令牌.在我的場景中,我將允許應用通過我自己的 Facebook 帳戶,將令牌存儲在我的 PHP 代碼中,并僅使用 cURL 定期更新現有代碼.

you should receive a token with an extended expiration. In my scenario, I will allow the app through my own Facebook account, store the token in my PHP code, and just use cURL to periodically update the existing code.

注意:根據 Facebook 文檔,到期時間每天只能延長一次

推薦答案

假設您擁有該頁面,您可以使用 manage_pages 權限.manage_pages 權限是我可以收集的永久令牌.然后在graph api上使用/feed和相關頁碼拉取信息.

Assuming you own the page you can use the manage_pages permission. The manage_pages permission is a permanent token from what I can gather. Then use /feed on the graph api with the relevant page number to pull the information.

我假設您擁有此頁面.如果您沒有或未獲得明確許可,則您無權刪除此信息.

I am assuming you own this page. If you don't or aren't explicitly given permission then you don't have the rights to pull this information down.

這篇關于向非 Facebook 用戶顯示 Facebook 帖子的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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)
主站蜘蛛池模板: 凹凸日日摸日日碰夜夜 | 二区精品 | 天天搞天天搞 | 中文字幕一区二区不卡 | 91精品国产色综合久久 | 成人午夜免费福利视频 | 中文字幕成人 | 一区二区不卡 | av片毛片 | 欧美亚州| 亚洲国产精久久久久久久 | 成人欧美一区二区三区在线观看 | 久色 | a级片在线观看 | 日韩黄| 黄色毛片大全 | 国产精品色一区二区三区 | 日本a∨视频 | 久久久精 | 日本中出视频 | 国产欧美久久精品 | 超碰免费在线 | 黄网站免费观看 | 欧美激情精品久久久久久 | 久久久久久国产一区二区三区 | 亚洲乱码国产乱码精品精的特点 | 性欧美精品一区二区三区在线播放 | 黄色一级免费 | 欧美日韩在线观看一区二区三区 | 亚洲精品欧美一区二区三区 | 韩日一区二区三区 | 91精品国产一区二区三区动漫 | 中文字幕国产日韩 | 一级毛片免费视频 | 国产精品久久久久久婷婷天堂 | 欧美精品欧美精品系列 | 国产精品免费一区二区 | 亚洲黄色成人网 | 成人区精品一区二区婷婷 | 欧美日韩久久久 | 免费看一区二区三区 |