How do I ask for facebook permissions in PHP?

后端 未结 3 1654
借酒劲吻你
借酒劲吻你 2021-01-07 07:36

How do I ask for facebook permissions in PHP? can you please give me an example?

thanks.

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-07 08:14

    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

提交回复
热议问题