Hello,
First of all - great module. Made my life so much easier. I've created a facebook application using this - it's at http://apps.facebook.com/healthandhappiness/
I used the invite page feature - and when users invite their friends - the friends receive the invitation but when they actually try to add the application - it just returns to the facebook home page without adding the application.
I noticed the same behavior when you using the sample page http://apps.facebook.com/drupalforfacebook/fb/invite
Am I missing something - do I have to do something in my application to make the inviate page work?
Comments
Comment #1
sushilmasti CreditAttribution: sushilmasti commentedfound the problem - the api_key was not being sent due to a bug/incomplete code in fb_form.module instead the app id was being sent in the parameter api_key....
incorrect code
correct_code
I'm still not sure what the sNextUrl is for - there seems to be missing code in the module referring to uninitialized variable $user specifically
// Construct a next url for referrals
$sNextUrl = urlencode("&refuid=".$user);
}
Comment #2
Dave Cohen CreditAttribution: Dave Cohen commentedWhoa, nice catch. That was sloppy of me. I copied much of that code from an example on the facebook api wiki. I thought it was working, but obviously did not test much.
I'm not on my normal machine, so I'm having trouble generating a proper patch file, but here's the change I intend to check in to fix this. I'm doing away with the sNextUrl business at least for now.
Comment #3
Dave Cohen CreditAttribution: Dave Cohen commentedThis didn't receive as much testing as I'd like, but I checked it in anyway.
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.