[英]How to import my own private facebook photos to my website?
I searched internet for hours and I couldn't figure out a simple way to do this ... My goal is to let everyone who access my website see all my own facebook photos (so I will be using my own user id , not the logged in user) .我在互联网上搜索了几个小时,但我想不出一个简单的方法来做到这一点......我的目标是让每个访问我网站的人都能看到我所有的 Facebook 照片(所以我将使用我自己的用户 ID,而不是登录用户) 。 I don't like to use Embedded Posts because I want photos to be synced with my own personal facebook photos every time a user refreshes the page...我不喜欢使用嵌入式帖子,因为我希望每次用户刷新页面时照片都与我自己的个人 Facebook 照片同步......
So do I need to give my facebook app full permission to access my own profile so it can retrieve all my data without asking for login ?那么我是否需要授予我的 facebook 应用访问我自己的个人资料的完全权限,以便它可以在不要求登录的情况下检索我的所有数据?
one more thing , I'm really confused about where facebook permissions are stored in ?还有一件事,我真的很困惑 facebook 权限存储在哪里? and how they work ?它们是如何工作的?
You would need to use the Graph API to read the photos, this is the API call: https://developers.facebook.com/docs/graph-api/reference/v2.3/user/photos#Reading您需要使用 Graph API 来读取照片,这是 API 调用: https : //developers.facebook.com/docs/graph-api/reference/v2.3/user/photos#Reading
You need a User Token for that, an Extended User Token is valid for 60 days and you need to refresh it manually every 2 months.为此,您需要一个用户令牌,扩展用户令牌的有效期为 60 天,您需要每 2 个月手动刷新一次。
More information about Access Tokens and how to generate them:有关访问令牌以及如何生成它们的更多信息:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.