Quantcast
Viewing all articles
Browse latest Browse all 8068

Facebook apprequests on iOS

Hi there,

I'm using the SDK 3.2.2.GA on iOS 7 and all my Facebook interactions work just fine. However, I just cannot get the apprequests dialog to work. Here's some code:

buttonInvite.addEventListener('click', function(){
        var data = {
            app_id:FB_APP_ID,
            message : "Check out this awesome app!"
        };
 
        fb.dialog("apprequests", data, function(e) {
            if(e.success && e.result) {
                alert("Success! New Post ID: " + e.result);
                Ti.API.info(JSON.stringify(e));    
            } else {
                if(e.error) {
                    alert(e.error);
                } else {
                    alert("User canceled dialog.");
                }
            }
        });
    });
I know there's is currently a bug related to this but this is for Android. Has anyone managed to get this to work on iOS?

Thanks!


Viewing all articles
Browse latest Browse all 8068

Trending Articles