New Timeline Like Button Behavior

跟風遠走 提交于 2019-12-13 14:51:17

问题


On the new style Page Tabs, the Like button no longer re-freshes the page. This breaks the existing workflow for "Like-gates", where the signed request is checked on the server. Like the page, page refreshes, boom - the tab now updates to the "Liked" state.

Will there be any kind of event fired when user clicks thew new Like button? Or is this kind of gating no longer possible?


回答1:


it's a bug that the page is not refreshing after being liked. Here's the bug reported:

https://developers.facebook.com/bugs/228778937218386?browse=search_4f500194bc1bd0293819428

However, I managed to do a workaround to detect if the page is still not using timeline by looking for an album called "Cover Photos" on the album list of that page. Here's a sample:

http://graph.facebook.com/-page_id-/albums?fields=name

You don't need a token unless the page isn't published yet.

The problem with this approach is that some pages still don't have cover picture yet, but it's the minority.




回答2:


This problem is now fixed by Facebook. See here:

http://developers.facebook.com/bugs/228778937218386

So everyone can relax.



来源:https://stackoverflow.com/questions/9514451/does-anyone-know-a-fix-for-the-lack-of-page-refresh-on-facebook-timeline-pages-w

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