1 decade ago by Joncom
1. Does anybody know a good place to ask questions about the Facebook and its API's? Threads in the official support forum go completely unanswered.
2. Can anybody tell me why a user who has installed my app is still showing up for further invites, despite my using a filter that should prevent him from showing up?
Here's the PHP I use to generate a Facebook URL:
My link then looks like this:
What happens is I see a list of all my friends, and I can invite anyone I want. Nobody is filtered out, even though some that have installed the app should be.
I&
Hmmm.
2. Can anybody tell me why a user who has installed my app is still showing up for further invites, despite my using a filter that should prevent him from showing up?
Here's the PHP I use to generate a Facebook URL:
// Create Invite Dialog. $invite = array( 'title' => 'Invite your friends', 'message' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse a dui nunc. Mauris eu purus justo. Ut blandit ornare commodo. Ut eget magna turpis, quis tincidunt elit. In eleifend felis non elit facilisis eleifend.', // Don't invite users with app already installed. 'filters' => "['app_non_users']", 'redirect_uri' => $config['app_canvas_url'] . '?action=done-photo-details' ); $invite_url = 'https://www.facebook.com/dialog/apprequests?'. 'app_id='.$config['app_id'].'&'. 'message='.urlencode($invite['message']).'&'. 'title='.urlencode($invite['title']).'&'. 'filters='.urlencode($invite['filters']).'&'. 'redirect_uri='.urlencode($invite['redirect_uri']);
My link then looks like this:
<a href="<?php echo $invite_url; ?>" target="_top">Invite</a>
What happens is I see a list of all my friends, and I can invite anyone I want. Nobody is filtered out, even though some that have installed the app should be.
I&
039;ve added a filter #app_non_users
as the Requests Dialog documentation says to, and I don't get any errors, but it doesn't seem to work.Hmmm.