Web Check-in Widget JS callback

79 views
Skip to first unread message

Brian

unread,
Feb 9, 2012, 2:33:05 PM2/9/12
to glue-development
Hi,

I'm having trouble getting the callback to work for the web check-in
widget. I am able to display the widget and check in to it, but it
does not appear that the callback I provide is ever getting called.
My html is essentially identical to your example (the callback I
provide current just posts an alert message). Any assistance would be
much appreciated.

Thanks,

Brian

Karen Teng (GetGlue)

unread,
Feb 9, 2012, 3:59:02 PM2/9/12
to glue-dev...@googlegroups.com
Hi Brian,

We checked on our end and callback is correctly working.
Possible to send over a snippet of your code?

Note that the callback has to be a property of the window object - 
if you try to do object.method it won't work

- Karen


Brian

--
You received this message because you are subscribed to the Google Groups "glue-development" group.
To post to this group, send email to glue-dev...@googlegroups.com.
To unsubscribe from this group, send email to glue-developme...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/glue-development?hl=en.




--
Karen Teng
VP of Engineering
http://getglue.com

GetGlue:  
http://getglue.com/TengFactor
LinkedIn: 
http://www.linkedin.com/in/karenteng

We are hiring! http://getglue.com/jobs



Brian

unread,
Feb 9, 2012, 4:30:20 PM2/9/12
to glue-development
Hi Karen,

Thanks for the response. Below is the snippet I am using:

<!DOCTYPE HTML>
<html>
   <head>
       <title>Get Glue</title>
   </head>
   <body>
       <script src="http://widgets.getglue.com/checkin.js" type="text/
javascript"></script>
       <script type="text/javascript">
       function my_getglue_callback(username, objectid, title,
numcheckins) {
           console.log('just checked in!'); // never gets called :(
           if (numcheckins == 1) {
               alert('Thanks for checking in to American Dad');
           }else{
               alert('You are on your way to becoming a fan of
American Dad');
           }
       }
       </script>
       <a href="http://getglue.com" class="glue-checkin-widget" data-
callback="my_getglue_callback" data-type="feed" data-title="American
Dad Checkins" data-objectId="tv_shows/american_dad" data-width="480"
data-height="700" data-prompt="Check in to American Dad">Check-in on
GetGlue</a>
   </body>
</html>

Any ideas?

Thanks!
> VP of Engineeringhttp://getglue.com
> We are hiring!http://getglue.com/<http://getglue.com/about>jobs
Message has been deleted

Brian

unread,
Feb 13, 2012, 3:56:46 PM2/13/12
to glue-development
Hi Karen,

Did you get a chance to look over the source I posted? Any assistance
would be greatly appreciated, as we would like to integrate your
service into our app.

Thanks,

Brian

Karen Teng (GetGlue)

unread,
Feb 13, 2012, 4:14:08 PM2/13/12
to glue-dev...@googlegroups.com
Hi Brian,

Thanks for following up with us. 

We did in fact confirm that this is a bug on our end -- the callback on feed widgets appear to not be working at the moment. I've filed the issue with the team and it will get fixed / resolved in our upcoming widgets release. 

Thanks for your patience.

- Karen

We are hiring! http://getglue.com/jobs



Reply all
Reply to author
Forward
0 new messages