如果用户喜欢该页面,则signedRequest不返回 [英] signedRequest doesn't return if user has liked the page

查看:62
本文介绍了如果用户喜欢该页面,则signedRequest不返回的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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 )

提供了任何帮助

谢谢 约翰

推荐答案

https://开发人员. facebook.com/docs/apps/changelog

今天之后创建的Page Tab应用程序的'signed_request'对象中将不再返回'liked'属性.从2014年11月5日开始,无论用户是否喜欢该页面,喜欢"属性将始终返回"true".

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

这篇关于如果用户喜欢该页面,则signedRequest不返回的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆