简体   繁体   中英

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) . 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...

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 ?

one more thing , I'm really confused about where facebook permissions are stored in ? 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

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.

More information about Access Tokens and how to generate them:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM