With the Facebook PHP SDK you ask for the offline_access permission when generating the login link.
With the Facebook PHP SDK, you ask for the offline_access permission when generating the login link : $args'scope' = 'offline_access'; $loginUrl = $facebook->getLoginUrl($args); echo 'Login with Facebook'; Then you can make API calls with that token : require "facebook. Php"; $facebook = new Facebook(array( 'appId' => YOUR_APP_ID, 'secret' => YOUR_APP_SECRET, )); $facebook->setAccessToken(USER_ACCESS_TOKEN); $facebookdata = $facebook->api('/me'); The offline_permission allows you to make API calls with the token, even when the user has logged out. Hope that helps!
I gave permission to my app, without the offline_acces, and then I cleared all coockies so I'm logged out, and I tried to post on my wall, with my user id and not /me and it worked, so I really don't understand the real necessity. As the app can post to users walls even after they log out and clear all the coockies, a user id is more than enough. – med May 31 at 22:38 It is because your are using the access token of the app (not the one of the user) so you are posting as the app, not as the user.
If you want to access private data of the user or take actions on his behalf, you will need his token. And if you want to do it when he is not logged in anymore, you will need the offline_access permission. – Quentin May 31 at 23:14 another question please, my app must have a profile page?
And if yes how to hide myself from being the developper? I want it to be anonymous. – med May 31 at 23:24 Yes all the apps have a page tha is facebook.com/apps/application.php?id=YOU... don't know if you are anonymous when you make an app but you can create a new Facebook account and create your app from this new account.
– Quentin May 31 at 23:37 but creating multiple accounts is not legal according to facebook TOS – med May 31 at 23:40.
Facebook Permissions: Enables your app to perform authorized requests on behalf of the user at any time. By default, most access tokens expire after a short time period to ensure applications only make requests on behalf of the user when the are actively using the application. This permission makes the access token returned by our OAuth endpoint long-lived.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.