signedRequest doesn't return if user has liked the page

余生长醉 提交于 2019-12-02 13:23:13

问题


Hello I am developing an fb app using facebook sdk (php version) but for some reason the signedRequest doesn't return me the liked variable in order to determine if the user has liked the page. Below is the print_r of signedrequest :

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

any help appretiated

thanks John


回答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.

Also, see the changes in the policy:

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



来源:https://stackoverflow.com/questions/25743990/signedrequest-doesnt-return-if-user-has-liked-the-page

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!