Featured post
javascript - Refresh after Facebook like is clicked -
am trying build facebook canvas app (iframe). head section have xfbml (fb:like) mid way thru page have fql call see if user has particular fan page or not (this app linked directly fan page) if user has liked page see x content, if not see y content - part if working fine - part struggling page automatically refresh after user clicks see x content. if manual refresh works so, have tried adding java event subscribe guess monitors page onclick scenario.....
this kind of works, firefox pop asking resend data before page refresh.
the current app page is: apps.facebook.com/marqueenightclub/ workflow trying emulate similar l'oreal app: apps.facebook.com/menexpertwhiteactiv/ prior clicking content user seesy content, clicking triggers x content
any appreciated - regards tony
if want full page refresh, eg. if you're doing server-side sdk, can use following code:
fb.event.subscribe('edge.create', function(response) { top.location.href = "http://www.facebook.com/yourpagename/app_yourappid" });
you'll have hard code in app's url on facebook. because window.reload() wont work, , neither top.location.href = top.location.href.
- Get link
- X
- Other Apps
Comments
Post a Comment