agorapulse / grails-facebook-sdk

Facebook SDK Grails Plugin
http://agorapulse.github.com/grails-facebook-sdk/guide
30 stars 13 forks source link

facebook:sendLink callback is never called! #59

Closed confile closed 11 years ago

confile commented 11 years ago

I have tried the following, but it turns out that the callback function is never called.

<script>
    function someCallbackFunction(response) {
        alert('callback called!');
        if (response && response.success) alert('Sent successfully');
        console.log(response);
    }
</script>
<facebook:sendLink
    callback="someCallbackFunction"
    link="http://www.google.com"
    to="594317994">
    Send a link to a friend
</facebook:sendLink>
benorama commented 11 years ago

Indeed, there is a missing line for this attribute in _send-link.gsp (L.4).

    <g:if test="${callback}">data-callback="${callback}"</g:if>

It will be fixed in next release. Thanks for the report.

confile commented 11 years ago

When will you do the next release ? I need that feature soon.

benorama commented 11 years ago

This morning ;) (V0.4.12)

confile commented 11 years ago

@benorama Thank you! :-)