编程语言
首页 > 编程语言> > php-如果用户喜欢该页面,则signedRequest不返回

php-如果用户喜欢该页面,则signedRequest不返回

作者:互联网

您好,我正在开发使用Facebook sdk(php版本)的fb应用程序,但由于某种原因,signedRequest不会返回我喜欢的变量,以便确定用户是否喜欢该页面.以下是signedrequest的print_r:

Array ( [id] => 395466473895310 [admin] => 1 )

任何帮助

谢谢
约翰

解决方法:

https://developers.facebook.com/docs/apps/changelog

The ‘liked’ property will no longer be returned in the ‘signed_request’ object for Page Tab apps created after today. From November 5, 2014 onwards, the ‘liked’ property will always return ‘true’ regardless of whether or not the person has liked the page.

另外,请参阅策略中的更改:

You must not incentivize people to use social plugins or to like a
Page. This includes offering rewards, or gating apps or app content
based on whether or not a person has liked a Page

标签:php,facebook-php-sdk
来源: https://codeday.me/bug/20191013/1904333.html