Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I show my personal stuff from Facebook in my website?

I searched in Stack Overflow, Google, etc, but I can't figure out how to show my stuff from my Facebook on my website. I tried some solutions and each one prompted the login dialog and visitors had to log in and accept my application (I've created one to test).

Many answers here were too generic, I didn't understand them that is why I'm asking.

I want something that would let my website "log in" to Facebook and show my status or photos to visitors without them needing to accept an app or log in into Facebook with their account.

I tried a facebook-php-sdk example with my AppID and AppSecret and it asked me to log in. Also, github.com/facebook doesn't have an SDK for Python similar to facebook-php-sdk

like image 337
educr0w Avatar asked Nov 03 '22 14:11

educr0w


1 Answers

You could write a script (eg. using the FB PHP SDK) that uses a long-lived access token to fetch your FB data and then store the data in your backend database (or other store for your website). To Facebook, your script will look like an app and your machine will be the only 'user' of that app. Note, long-lived access tokens are good for 60 days max. You could also try using an App Access Token to fetch basic info. App Access Tokens don't expire.

like image 172
Donn Lee Avatar answered Nov 09 '22 08:11

Donn Lee