Facebook "invite friends" in a page tab

June 29, 2012 at 07:22

When I googled this, I actually found out that apprequests can only be made within an application, but not a page tab. This is true, when calling apprequests from a pagetab, the dialog opens but invites will not be sent. This problem can be avoided easily though: 1.assign a canvas URL to your app, make it the same URL as your page tab. Now inviting friends does work, but when they click the request, they're being redirected to the canvas app (as opposed to the page tab). 2.It's easy to find out what you're on though, just check if fb_source is set andif so, redirect to your page tab:
    die("<script>window.top.location = 'http://www.facebook.com/PAGENAME/app_XXXXXXXXX'; </script>");

Tags: apprequests canvas freunde einladen friend invites pagetab

Hinterlasse einen Kommentar: