How do I ask for facebook permissions in PHP? can you please give me an example?
thanks.
This is how you request permissions.. To detect if a user is authorized with your app or not, etc you have to use the Facebook PHP library, that is much more complicated, read here to get started: http://developers.facebook.com/docs/
Just for requesting permission you first need to have your fb-root div and include the Facebook Javascript Graph API file, then put a login button.. The autologoutlink parameter specifies if it should show "Logout" if the user is already connected to your application.
The perms is the permissions requested for the app, a full list is on the Facebook developer docs site.. You have to enter your application ID also.
Connect to this application using Facebook