Facebook Pagetab应用程序 - 用户喜欢 [英] Facebook Pagetab App - user likes

查看:109
本文介绍了Facebook Pagetab应用程序 - 用户喜欢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Facebook SDK,我们创建了一个按照我们需要工作的应用程序。我们可以在PHP中 $ FacebookSDK-> getSignedRequest(),它将响应包含 pages->喜欢的对象这允许我们确定用户是否喜欢该页面。

I'm using the Facebook SDK and we created an app which worked just as we needed. We could $FacebookSDK->getSignedRequest() in PHP and it would respond with an object that included pages->liked which allowed us to determine if the user likes the page or not.

无论如何,我们创建了一个确切的重复应用程序(这个应用程序的唯一区别是3个月比旧的更新),而财产已完全消失,我无法得到我的手。

Anyway, we have created an exact duplicate application (the only difference being that this app is about 3 months newer than the old) and the like property has completely disappeared and I can't get my hands on it.

任何想法为什么会发生这种情况 - Facebook已经进一步限制了他们的SDK,并删除了新的应用程序的这个属性?

Any ideas why this is happening - has Facebook restricted their SDK yet further and removed this property for new apps?

示例之前:

stdClass Object
(
    [algorithm] => HMAC-SHA256
    [issued_at] => 1408626697
    [page] => stdClass Object
        (
            [id] => ************
            [admin] => 1
            [liked] => 1
        )

    [user] => stdClass Object
        (
            [country] => gb
            [locale] => en_GB
            [age] => stdClass Object
                (
                    [min] => 21
                )
        )
)

示例之后:

stdClass Object
(
    [algorithm] => HMAC-SHA256
    [issued_at] => 1408625335
    [page] => stdClass Object
        (
            [id] => ************
            [admin] => 1
        )

    [user] => stdClass Object
        (
            [country] => gb
            [locale] => en_GB
            [age] => stdClass Object
                (
                    [min] => 21
                )
        )
)

请注意只有这里缺少的东西是喜欢的财产,所以我无法判断用户是否喜欢我们的页面标签或不! Facebook正在努力开发这些日子!

Notice that the only thing missing here is the likes property so I can't tell if the user likes our page tab or not! Facebook is doing my nut in to develop on these days!

谢谢,
Chris。

Thanks, Chris.

推荐答案

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

(见v2.1更改)

Fan- / Like-Gates是不可能,根据平台政策不允许。 2014年11月5日之后,旧版应用程式将始终在signed_request参数中返回true。

Fan-/Like-Gates are not possible anymore, and not allowed according to the Platform Policy. Old Apps will always return "true" in the signed_request parameter after 5th of November 2014.

这篇关于Facebook Pagetab应用程序 - 用户喜欢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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