简体   繁体   中英

How to request permission for a canvas application using Facebook PHP SDK v4

我想知道如何使用使用Facebook PHP SDK v4的画布应用程序正确请求权限(publish_actions)。

Asking for permission is the same as other apps:

// set redirect_uri
$helper = new FacebookRedirectLoginHelper( 'http://apps.facebook.com/yourapp' );

// login link
echo '<a href="' . $helper->getLoginUrl( [ 'publish_actions' ] ) . '" target="_top">Login</a>';

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